ERIS CORE

◆ rebootRequest()

void FLASHMEM AppWren::rebootRequest ( const char *  script_name)
inline

c callback support to allow wren scripts to request a VM reboot & script load

Parameters
script_name

Definition at line 176 of file AppWren.h.

176  {
177  //the actual reboot load request will be completed in the AppWren::update loop.
179  sci->printf("M AppWren:rebootRequest: %s\n",script_name);
180  sci->sendLZ4Message();
181  }
182  reboot_request = true;
183  safer_strncpy(wren_module_name,script_name,sizeof(wren_module_name));
184  }
bool safer_strncpy(char *dest, const char *source, uint16_t dest_size)
a safer strncpy
Definition: ErisUtils.cpp:20
SvcSerialCommandInterface * sci
Definition: AppBaseClass.h:39
char wren_module_name[MAX_TEXT_LENGTH]
Definition: AppWren.h:768
bool reboot_request
Definition: AppWren.h:764
bool requestStartLZ4Message()
request to start a lz4 compressed message starts the message and returns true if available returns f...
void sendLZ4Message()
Calling this function signals the end of a compressed message. The txBuffer contents are lz4 compres...

References reboot_request, SvcSerialCommandInterface::requestStartLZ4Message(), safer_strncpy(), AppBaseClass::sci, SvcSerialCommandInterface::sendLZ4Message(), and wren_module_name.

Referenced by messageHandler(), and restartVMCallback().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: