ERIS CORE

◆ messageHandler_WREN_SCRIPT_COMPILE()

void FLASHMEM SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_COMPILE ( )
protected

Definition at line 514 of file svcSerialCommandInterface.cpp.

514  {
515  if(p_capture_buffer != NULL){
516  Serial.println(F("M SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_COMPILE: script compile request"));
517  am->sendMessage(this,"AppWren","WREN_SCRIPT_COMPILE");
518  am->sendMessage(this,"AppWren",p_capture_buffer);
519 #ifndef USE_EXTMEM
520  captureBuffer = (char*)realloc(captureBuffer,0);
521  Serial.println(F("M SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_COMPILE: captureBuffer released"));
522 #endif
523  } else Serial.println(F("M SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_COMPILE: captureBuffer is NULL"));
524 }
AppManager * am
Definition: AppBaseClass.h:38
bool sendMessage(AppBaseClass *sender, const char *to_app, const char *message)
provides an interface for apps to send messages to other apps
Definition: AppManager.cpp:469

References AppBaseClass::am, p_capture_buffer, and AppManager::sendMessage().

Referenced by update().

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