MySensors Library & Examples  2.3.2-26-g8f1f8ad
Functions
+ Collaboration diagram for MyOTALogging:

Detailed Description

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...
 

Function Documentation

◆ OTALog()

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 '...'

Parameters
logNodeDestination node ID
echoEnable or disable echo flag
fmtprintf format string
...arguments

◆ OTALogPrint()

void OTALogPrint ( const MyMessage message)
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 '...'

Parameters
messageMessage buffer to use.