ERIS CORE

◆ messageHandler_WREN_SCRIPT_SAVE()

void FLASHMEM SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_SAVE ( )
protected

Definition at line 489 of file svcSerialCommandInterface.cpp.

489  {
490  if(p_capture_buffer != NULL){
491  Serial.println(F("M SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_SAVE: script save request"));
492  am->sendMessage(this,"AppWren",p_received_chars);//"WREN_SCRIPT_SAVE [modulename]");
493  am->sendMessage(this,"AppWren",p_capture_buffer);
494  #ifndef USE_EXTMEM
495  captureBuffer = (char*)realloc(captureBuffer,0);
496  Serial.println(F("M SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_SAVE: captureBuffer released"));
497  #endif
498  } else Serial.println(F("M SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_SAVE: captureBuffer is NULL"));
499 }
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, p_received_chars, and AppManager::sendMessage().

Referenced by update().

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