Subscribe to Locations

To subscribe to locations from a device, connect to the MQTT API and subscribe it to the locations topic for that device.

To subscribe to locations the MQTT topic is: devices/{device.id}/locations

Replace {device.id} with your device ID (should begin with dev_).

Example Code

Subscribe to all device locations using the Wia SDK

Javascript
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard