MySensors Library & Examples
2.3.2
|
Enables ending and receiving debug messages over the air.
Functions | |
void | OTALog (uint8_t logNode, bool echo, const char *fmt,...) |
Send a log message to a node. More... | |
void | OTALogPrint (const MyMessage &message) |
Handles output of OTA log or debug messages. More... | |
void OTALog | ( | uint8_t | logNode, |
bool | echo, | ||
const char * | fmt, | ||
... | |||
) |
Send a log message to a node.
If MY_OTA_LOG_RECEIVER_FEATURE is enabled on the destination node, the given message is printed to the serial port. You have to define MY_OTA_LOG_SENDER_FEATURE or MY_DEBUG_OTA to enable the OTALog() function.
Output format of each line: Node ID;CHILD_NODE_ID;C_INTERNAL;I_LOG_MESSAGE;hwMillis() MESSAGE
You will see the hwMillis() of the receiving node. After each
character, a new debug message line starts. Incomplete messages are ending with '...'
logNode | Destination node ID |
echo | Enable or disable echo flag |
fmt | printf format string |
... | arguments |
|
inline |
Handles output of OTA log or debug messages.
This function is used by MyTransport.cpp
Output format of each line: Node ID;CHILD_NODE_ID;C_INTERNAL;I_LOG_MESSAGE;hwMillis() MESSAGE
You will see the hwMillis() of the receiving node. After each
character, a new debug message line starts. Incomplete messages are ending with '...'
message | Message buffer to use. |