![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Modules | |
pword | |
alias | |
Data Structures | |
class | RAKSystem::atMode |
Macros | |
#define | CHANGE_ATCMD_PERM(_atcmd_name, _atcmd_perm) |
change AT command permission More... | |
#define | RT_INIT(rt) LABEL_INIT((rt)->label) |
#define | RT_BEGIN(rt) { char RT_YIELD_FLAG = 1; LABEL_RESUME((rt)->label) |
#define | RT_END(rt) |
#define | RT_WAIT_UNTIL(rt, condition) |
#define | RT_WAIT_WHILE(rt, cond) RT_WAIT_UNTIL((rt), !(cond)) |
#define | RT_WAIT_THREAD(rt, thread) RT_WAIT_WHILE((rt), RT_SCHEDULE(thread)) |
#define | RT_SPAWN(rt, child, thread) |
#define | RT_RESTART(rt) |
#define | RT_EXIT(rt) |
#define | RT_SCHEDULE(f) ((f) < RT_EXITED) |
#define | RT_YIELD(rt) |
#define | RT_YIELD_UNTIL(rt, cond) |
#define | RT_SLEEP(rt, delay) |
Functions | |
void | reboot () |
void | restoreDefault () |
#define CHANGE_ATCMD_PERM | ( | _atcmd_name, | |
_atcmd_perm | |||
) |
change AT command permission
PERMISSION LEVEL:
RAK_ATCMD_PERM_READ,
RAK_ATCMD_PERM_WRITE,
RAK_ATCMD_PERM_WRITEONCEREAD,
RAK_ATCMD_PERM_DISABLE
AT commands' default permission are RAK_ATCMD_PERM_READ | RAK_ATCMD_PERM_WRITE
CHANGE_ATCMD_PERM("AT+APPKEY", RAK_ATCMD_PERM_READ); CHANGE_ATCMD_PERM("AT+APPSKEY", RAK_ATCMD_PERM_WRITE); CHANGE_ATCMD_PERM("AT+DEVADDR", RAK_ATCMD_PERM_WRITEONCEREAD); CHANGE_ATCMD_PERM("AT+APPEUI", RAK_ATCMD_PERM_DISABLE); CHANGE_ATCMD_PERM("AT+NETID", RAK_ATCMD_PERM_READ | RAK_ATCMD_PERM_WRITE); CHANGE_ATCMD_PERM("AT+ALIAS", RAK_ATCMD_PERM_READ | RAK_ATCMD_PERM_WRITE); CHANGE_ATCMD_PERM("AT+HWID", RAK_ATCMD_PERM_READ | RAK_ATCMD_PERM_WRITE); void setup() { } void loop() { }
#define RT_INIT | ( | rt | ) | LABEL_INIT((rt)->label) |
rt | the thread handle |
#define RT_BEGIN | ( | rt | ) | { char RT_YIELD_FLAG = 1; LABEL_RESUME((rt)->label) |
rt | the thread handle |
#define RT_END | ( | rt | ) |
rt | the thread handle |
#define RT_WAIT_UNTIL | ( | rt, | |
condition | |||
) |
rt | the thread handle |
condition | wait condition |
#define RT_WAIT_WHILE | ( | rt, | |
cond | |||
) | RT_WAIT_UNTIL((rt), !(cond)) |
rt | the thread handle |
condition | wait condition |
#define RT_WAIT_THREAD | ( | rt, | |
thread | |||
) | RT_WAIT_WHILE((rt), RT_SCHEDULE(thread)) |
rt | the thread handle |
thread | a RAK thread |
#define RT_SPAWN | ( | rt, | |
child, | |||
thread | |||
) |
rt | the thread handle |
child | a RAK child thread |
thread | a RAK parent thread |
#define RT_RESTART | ( | rt | ) |
rt | the thread handle |
#define RT_EXIT | ( | rt | ) |
rt | the thread handle |
#define RT_SCHEDULE | ( | f | ) | ((f) < RT_EXITED) |
f | a thread function |
#define RT_YIELD | ( | rt | ) |
rt | the thread handle |
#define RT_YIELD_UNTIL | ( | rt, | |
cond | |||
) |
rt | the thread handle |
condition | wait condition |
rt | the thread handle |
delay | a period of time |
void reboot | ( | ) |
int loopCount == 0; void setup() { } void loop() { loopCount++; if(loopCount == 60) api.system.reboot(); // Reboot after 60 seconds delay(1000); }
void restoreDefault | ( | ) |
void setup() { api.system.restoreDefault(); } void loop() { }