New OTA debugging and logging feature (#913) (#913)

This commit is contained in:
d00616
2017-09-18 20:58:44 +02:00
committed by Henrik Ekblad
parent 0ed558f1d0
commit 8412a3d360
9 changed files with 518 additions and 5 deletions
+6
View File
@@ -831,6 +831,12 @@ void transportProcessMessage(void)
TRANSPORT_DEBUG(
PSTR("TSF:MSG:ACK\n")); // received message is ACK, no internal processing, handover to msg callback
}
#if defined(MY_OTA_LOG_RECEIVER_FEATURE)
if ((type == I_LOG_MESSAGE) && (command == C_INTERNAL)) {
OTALogPrint(_msg);
return; // no further processing required
}
#endif //defined(MY_OTA_LOG_RECEIVER_FEATURE)
#if defined(MY_GATEWAY_FEATURE)
// Hand over message to controller
(void)gatewayTransportSend(_msg);