ERIS CORE

◆ messageHandler_UPDATE_DD()

void FLASHMEM SvcSerialCommandInterface::messageHandler_UPDATE_DD ( )
protected

Definition at line 470 of file svcSerialCommandInterface.cpp.

470  {
471  int total_read;
472  char cmd[128], param[128];
473  int32_t val;
474  float32_t fval;
475  total_read = sscanf(p_received_chars, "%127s %127s %d" , cmd, param,(int*)&val);
476  if (total_read < 3){
477  total_read = sscanf(p_received_chars, "%127s %127s %f" , cmd, param,(float32_t*)&fval);
478  if (total_read < 3){
479  Serial.print(F("M SvcSerialCommandInterface::messageHandler_UPDATE_DD ERROR WRONG PARAM COUNT"));
480  Serial.println(total_read);
481  } else am->data->update(param,fval);
482  }else if(!am->data->update(param,val)){
483  total_read = sscanf(p_received_chars, "%127s %127s %f" , cmd, param,(float32_t*)&fval);
484  am->data->update(param,fval);
485  }
486 }
AppManager * am
Definition: AppBaseClass.h:38
SvcDataDictionary * data
Definition: AppManager.h:63
bool update(const char *key, int32_t val, uint32_t *owner)
update the value of an owned record creates a new record if one does not exist and initializes its ...

References AppBaseClass::am, AppManager::data, p_received_chars, and SvcDataDictionary::update().

Referenced by update().

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