![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Functions | |
bool | set (char *buf, uint32_t len) |
bool | get (char *buf, uint32_t len) |
bool set | ( | char * | buf, |
uint32_t | len | ||
) |
buf | the buffer to set alias name |
len | the length of alias name( <= 16 bytes) |
TRUE | for setting alias name successfully |
FALSE | for setting alias name failure |
void setup() { Serial.begin(115200); api.system.alias.set("my device",16); char buf[16]; Serial.println(api.system.alias.get(buf,16)); Serial.println(buf); } void loop() { }
bool get | ( | char * | buf, |
uint32_t | len | ||
) |
buf | the buffer to get alias name |
len | the length of alias name( <= 16 bytes) |
TRUE | for getting alias name successfully |
FALSE | for getting alias name failure |
void setup() { Serial.begin(115200); api.system.alias.set("my device",16); char buf[16]; Serial.println(api.system.alias.get(buf,16)); Serial.println(buf); } void loop() { }