Expand description

Provides alternatives to the regular log::info, log::trace, etc. macros. These work the same way, but you can provide a Device as the first argument and it will print the id and state as a prefix.

The state printed will be the current state stored on the Device struct, so be sure to update the device first if you want accurate logging

Macros

Functions

  • Creates a string prefix to add to the log message containing the device id and states.