Troubleshooting tips
Check your Arduino IDE settings
The proper settings are described in detail at Step 2 - Device configuration.
Check for connectivity problems
WiFi problems are shown at the Arduino Serial Monitor.
If your device cannot connect, check whether the config.h file contains the right configuration.
Further, check connection logs in the Suite UI.
You can enable logs of the relevant connection (Devices via Bosch IoT Hub) following these steps:go to Connections on the left sidebar
select the connection Devices via Bosch IoT Hub
open the Log entries tab
click the button Enable logging for one hour
In case the telemetry messages arrived at the digital twin layer but could not be applied:
go to Connections on the left sidebar
select the connection Devices via Bosch IoT Hub
open the Metrics tab
The errors should be visible there.
Check the Arduino board credentials
You may have provided wrong device credentials.
The provisioning.json file and the Hub HTTP API can only show the device password in encoded format.
Therefore, check your stored password, as advised during the device provisioning step.
In case you really have no clue about the secret, use the UI Device > your device > Credentials sections and define a new password.Adjust the credentials in the opla_kit/config.h file.
Recompile the sketch using the Arduino IDE.
Upload the firmware again to the board.
Handle network errors
In case of a network error message, please re-check the policy and the connection.
Try to read the policy with the given ID via a plain GET policy request
https://apidocs.bosch-iot-suite.com/?urls.primaryName=Bosch IoT Things - API v2#/Policies/get_policies__policyId_
The user and the device connectivity layer (Bosch IoT Hub) need read and write permission on the "message:/" resource.Re-check the connection and make sure the "Bosch IoT Hub subject"
integration:your-things-solution-id:hub is also set in the Target section.