This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MQTT connections topic works on gateway level not on device level

Hello,

I'm trying to use MQTT API to get the information about connected/disconnected devices.

I'm subscribed to the topic: xyz/a/connections and I'm able to receive connection status data from this topic, but only for my Gateway application device, not for my Bluetooth device. Is there any way to know when the Bluetooth device is connected to my mobile Gateway application?

My devices can connect (Activate Bluetooth) when I put a magnet, so when I got the information "GW is connected" (from MQTT topic) then my BT devices are not connected yet, and when I put a magnet and they become "connected" in Gateway application (mobile app), but I don't receive any notification in MQTT topic.

Is there any way to send connected/disconnected information on the BLE device level?

Parents Reply Children
No Data
Related