Skip to main content

Bosch XDK

The implementation shows how Web3, AI, and IoT converge to create a new open paradigm for data-based services in the Economy of Things on peaq, paving the way to more opportunities for DePIN projects — and for the peaqosystem.

The Bosch XDK device incorporates 8 sensors in one tiny frame. These are:

peaq, Bosch, and unveil a smart device tapping Web3 and AI tech to enable anyone, anywhere to earn rewards in crypto by collecting and monetizing all sorts of valuable data.

  • Magnetometer, for measuring magnetic fields

  • Gyroscope, for measuring angular velocity

  • Accelerometer, for measuring speed

  • Acoustic sensor, for measuring noise levels

  • Humidity sensor

  • Temperature sensor

  • Pressure sensor

  • Light sensor

Welcome to the XDK MQTT application (integrating Bosch XDK with peaq network). This code is an example of an application built using Eclipse Mita. It involves interactions with MQTT messaging and control of lighting using XDK 110.

Getting Started

To run this application on your XDK 110, follow these steps:

  • Ensure that you have the XDK Workbench installed and set up.

  • Open the project in XDK Workbench.

  • Make sure you have your XDK 110 connected to your computer.

  • Modify the necessary parameters in the code, such as ssid, psk, deviceID, and MQTT broker information.

  • Build and flash the application to your XDK 110 device.

  • Observe the application behavior based on the code logic.

Code Overview

  • The application establishes connections to MQTT broker and WLAN network.

  • It reads various sensor data like temperature, humidity, and light intensity.

  • It publishes this sensor data to an MQTT topic named telemetry.

  • The application also allows you to control a home light using a button press.

  • It communicates with the broker and sends a device ID to a topic named deviceID upon button press.


Before running the application, make sure to configure the following:

  • Set your WiFi SSID and authentication details in the net setup.

  • Configure the MQTT broker URL and client ID in the mqtt setup.

  • Update the deviceID to your unique identifier.


  • This application uses the Eclipse Mita framework and requires the XDK Workbench for compilation and deployment.

  • Make sure you have a working knowledge of the XDK 110 device and Eclipse Mita concepts.

Sample Code

You can find sample code here