sinuswave Posted May 2, 2019 at 05:46 PM Posted May 2, 2019 at 05:46 PM Hi all, how can multiple stations oder sensors be distinguished in callback mode? Right now I have one sensor running using tinkerforge_mqtt. Output: mosquitto_sub -t 'tinkerforge/callback/outdoor_weather_bricklet/Ehg/sensor_data' {"identifier": 164, "temperature": 118, "humidity": 57} Is the datastructure going to change when another sensor starts sending? Quote
rtrbt Posted May 3, 2019 at 09:43 AM Posted May 3, 2019 at 09:43 AM Hi, You can distinguish multiple sensors and stations with the identifier field. If another sensor starts sending, it should change from 164 to another value. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.