Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CWPortGenHeartbeatCB() is an MJSON printer function invoked under the context of a MJPrintf() call triggered by the library. Implementors must use MJPrintf() calls within the context of CWPortGenHeartbeatCB()to generate the heartbeat message. The function must return the total number of new bytes written to the message. Implementors will have either 300 or 800 (default) bytes of buffer space for generating each heartbeat message depending on the CWL configuration.

Info

CW_PORT_IS_SMALL_MSG_ENABLED = 1 in cwport.h can be used to configure the CWL for 300 byte SRAM hardware implementation.

Implementors can cause the callback to be invoked additional times when more than one heartbeat OKM must be generated each minute or when a critical state change occurs. This is done by calling CWCmdScheduleHeartbeat().

...