ERIS CORE

◆ messageHandler_WREN_SCRIPT_EXECUTE()

void FLASHMEM SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_EXECUTE ( )
protected

Definition at line 501 of file svcSerialCommandInterface.cpp.

501  {
502  if(p_capture_buffer != NULL){
503  Serial.println(F("M SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_EXECUTE: script execute request"));
504  am->sendMessage(this,"AppWren","WREN_SCRIPT_EXECUTE");
505  am->sendMessage(this,"AppWren",p_capture_buffer);
506 #ifndef USE_EXTMEM
507  captureBuffer = (char*)realloc(captureBuffer,0);
508  Serial.println(F("M SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_EXECUTE: captureBuffer released"));
509 #endif
510  } else Serial.println(F("M SvcSerialCommandInterface::messageHandler_WREN_SCRIPT_EXECUTE: captureBuffer is NULL"));
511 }
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: