Versions Compared

Key

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

...

All activity takes place in the eventNotifCb function - it parses and stores the event in the app_vars global variables struct, and prints the event notification.  In a more complex design, it might copy the event notification, and post a semaphore for action by another task - e.g. storing persistent configuration when a disconnect event is received.  Note that as  


Info

As with other APIs, the event notification fields are sent in network order

,

and therefore must be swapped for use in your application (e.g. for printing or testing).