ERIS CORE

◆ messageHandler_GET()

void FLASHMEM SvcSerialCommandInterface::messageHandler_GET ( )
protected

Definition at line 548 of file svcSerialCommandInterface.cpp.

548  {
549  int total_read;
550  char cmd[128], param[128],param2[128];
551  total_read = sscanf(p_received_chars, "%127s %127s %127s" , cmd, param,param2);
552  if (total_read < 3){
553  Serial.print(F("M GET_ERR WRONG PARAM COUNT"));
554  Serial.println(param);
555  } else{
556  while(throttle()){ delay(1);}
557  //file streaming request ok
558  //init the transfer
559  Serial.print(F("M GET_OK "));
560  Serial.print(param);
561  Serial.print(" ");
562  Serial.println(param2);
563  strcpy(p_stream_path,param);
564  strcpy(p_stream_file,param2);
565  Serial.println(F("FS_START"));
566  is_streaming_file = true;
568  stream_pos = 0;
569  }
570 }
bool throttle()
returns true if the available serial buffer falls below SERIAL_THROTTLE_BUFFER_REMAINING_THRESHOLD if...

References is_periodic_messages_enabled, is_streaming_file, p_received_chars, p_stream_file, p_stream_path, stream_pos, and throttle().

Referenced by update().

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