My Raspberry Pi is publishing these MQTT messages and I want to create a routine to do something when it receives the message.
I have three of your MQTT drivers installed (MQTT Handler V1, MQTT Devices V1.1, and MQTT Test Driver 1)
but I can’t figure out how to do what I want.
I’ve included two screenshots of the configuration on the MQTT Devices V1.1 driver.
wptracy@wptracy:~mosquitto_sub -h 10.0.0.3 -t # -d-d
Client (null) sending CONNECT
Client (null) received CONNACK (0)
Client (null) sending SUBSCRIBE (Mid: 1, Topic: #, QoS: 0, Options: 0x00)
Client (null) received SUBACK
Subscribed (mid: 1): 0
Client (null) received PUBLISH (d0, q0, r0, m0, ‘monitor/Rpi400/status’, … (6 bytes))
online
Client (null) received PUBLISH (d0, q0, r0, m0, ‘monitor/Rpi400/status’, … (6 bytes))
online
Client (null) received PUBLISH (d0, q0, r0, m0, ‘monitor/Rpi400/pat_tracy_samsung’, … (227 bytes))
{“id”:“00:00:00:00:00”,“confidence”:“100”,“name”:“Pat Tracy Samsung”,“manufacturer”:“Samsung Electronics CoLtd”,“type”:“KNOWN_MAC”,“retained”:“false”,“timestamp”:“Sun Jan 08 2023 09:57:27 GMT-0700 (MST)”,“version”:“0.2.200”}
online
Client (null) received PUBLISH (d0, q0, r0, m0, ‘monitor/Rpi400/pat_tracy_iphone’, … (210 bytes))
{“id”:“00:00:00:00:00”,“confidence”:“100”,“name”:“Pat Tracy iPhone”,“manufacturer”:“Apple Inc”,“type”:“KNOWN_MAC”,“retained”:“false”,“timestamp”:“Sun Jan 08 2023 09:57:39 GMT-0700 (MST)”,“version”:“0.2.200”}
Client (null) sending PINGREQ
Client (null) received PINGRESP