I’m wondering if there are any best practice suggestions on matching Losant DEVICE_IDs with the native identification of mqtt devices in the field? The built-in Losant mqtt state update assumes the DEVICE_ID is in the topic name which makes it really seamless because a workflow is not even needed. However, I need to figure out how the field device will know the Losant device ID or the way around.
Seems to me there are two options?
- Have the field device use the API to lookup the DEVICE_ID before publishing to mqtt.
- Send another identifier from the field device and use a Workflow to looking a tag to associate the DEVICE_ID.
Are there any other ways outside of this?
Thanks!
Paul