Definition at line 256 of file svcSerialCommandInterface.cpp.
259 uint16_t payload_len;
266 Serial.println(F(
"M GET_ERR FILE OPEN ERROR"));
277 i =
file.available();
280 if(i > SERIAL_FILESTREAM_PAYLOAD_SIZE) i = SERIAL_FILESTREAM_PAYLOAD_SIZE;
283 if (
file.read(&bufferChr,1) < 0){
284 Serial.println(F(
"\nM GET_ERR FILE READ ERROR"));
291 sprintf(hexBuffer,
"%02X,",(
unsigned int)bufferChr);
299 if (payload_len == 0){
302 Serial.println(
"FS_END");
306 delayMicroseconds(3000);
309 else if (payload_len < SERIAL_FILESTREAM_PAYLOAD_SIZE) {
311 Serial.println(
"FS_END");
316 delayMicroseconds(3000);
325 Serial.print(F(
"M GET_ERR FILE NOT FOUND "));
bool throttle()
returns true if the available serial buffer falls below SERIAL_THROTTLE_BUFFER_REMAINING_THRESHOLD if...
bool is_periodic_messages_enabled
void empty()
zero out the transmit buffer and reset the write index
void sendLZ4Message()
Calling this function signals the end of a compressed message. The txBuffer contents are lz4 compres...
References empty(), file, index_tx_buffer, is_periodic_messages_enabled, is_streaming_file, p_SD, p_stream_file, p_stream_path, p_tx_Buffer, sendLZ4Message(), startLZ4Message(), stream_pos, and throttle().
Referenced by update().