Bosch IoT Device Management - will be discontinued by mid 2024

Set debug level and stream

The IoT Agent library comes with its own debugging library.

The debug level can be set using the setDebugLevel method.

setDebugLevel(DebugLevel::DEBUG)

The default debug level is `WARN`

The debug levels are:

  • `DebugLevel::OFF`

  • `DebugLevel::ERROR`

  • `DebugLevel::WARN`

  • `DebugLevel::INFO`

  • `DebugLevel::DEBUG`

  • `DebugLevel::TRACE`

You can also set the stream in which the debug messages will be sent by using the setDebugStream method.

setDebugStream(&Serial)

The default debug stream is Serial.