IoT device control
Objective
Prerequisites
Processing Overview
Development steps
1
Setup environment
Install tools
Start Joule container
./quickstart/startupJouleSetup the sensor simulator environment
- eventTime
- sensorId
- temperature
- humidity
- co2
- mqValueExample
{
"sensorId": 1001,
"eventTime": 1735767588478,
"temperature": 33.0,
"humidity": 12.3,
"co2": 12.2,
"mqValue": 25
}cd ./quickstart/bin/iot/sensor_simulator
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txtValidate MQTT is running
mosquitto_sub -h localhost -t sensors/datamosquitto_pub -h localhost -t sensors/data -m "{\"sensorId\":1001,\"eventTime\":1735767588478,\"temperature\":33.0,\"humidity\":12.3,\"co2\":12.2}"2
3
4
Last updated