Hi there
I have multiple devices that I’m setting up and managing through the API
I want to target specific messages to each device, and only that device should have access to that message. No device should be able to publish.
It seems MQTT doesn’t let you target like this, so I’m looking at doing it another way.
Option A.
- Filter all devices so they can’t publish (looks like it can be done)
- Filter all devices so they can’t subscribe to any channels (looks like it can be done)
- Now I need to subscribe them to a specific channel, related to their device_id, say ‘message/device1’ but because of the above step 2 (no subscribing) I’m unable to do this.
Is there a way to add a subscription to a device, say from the admin user, while keeping the filter in place? (This also needs to be through the API as I have a large number of devices)
Option B.
- Filter all devices so they can’t publish (looks like it can be done)
- Subscribe device to a channel relating to their device_id, say ‘message/device1’
- Freeze their subscription through the API, so they are then locked to only that subscription (I see I can do this through the website, but I’ll need to this for a large number of devices and so need to use the API)
Option C.
Is there another way to do this through the API? For example creating filters dynamically through the API.
Thanks
Richard