so I was reading the MQTT documentation and if I get this right I can also use it to publish generic payloads from devices outside Losant.
Now I am having trouble publishing generic payloads (it cannot even connect with a standard MQTT library) so I am wondering … does the client_id is still validated? e.g. do I have to create a bogus device and the use that client_id in the MQTT authentication even for generic payloads?
I can actually confirm this is the case because when I change the clientid to a a custom string the connection is refused.
This should be at least described in the documentation.
We do mention here that authenticating against the broker requires providing a device ID as the client ID. Where were you looking so that I can get that noted in the same spot?
And to answer your question, yes, you’ll need to create a device in Losant to serve as the client. We have talked about allowing for arbitrary connections using the application as the client (or setting your own client ID) but we do not have any timelines for when that would be implemented.
Yes I know that but I assumed that since the device doesn’t exist because is external, the client_id wouldn’t apply in that case. Maybe you can reference that in the paragraph called Custom Topics like “you do still need to create a device for this to work etc etc”.
Oh nice, I guess this will be useful if I want to transform and display those messages in real time in a UI component (experiences)?