Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Publish a Location
Copy Markdown
Open in ChatGPT
Open in Claude
To send a location to Wia, connect to the MQTT API and publish it to the locations topic.
The events MQTT topic is:
locations or devices/{DEVICE_ID}/locations
Example Code
x
// Create an instance of Wia// Replace 'd_sk_abcdef' with your device secret keyvar wia = require('wia')('d_sk_abcdef');// Listen for a successful connection to the MQTT APIwia.stream.on('connect', function() { // Publish a location wia.locations.publish({ latitude: 35.689487, longitude: 139.691706 });});// Connect to the MQTT APIwia.stream.connect();Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Next to read:
Subscribe to LocationsDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
