Hey @Rich,
i have problems to publish to the Location Attribute via mqtt.
Got a hint?
Path, format etc.
Hey @Rich,
i have problems to publish to the Location Attribute via mqtt.
Got a hint?
Path, format etc.
How about this:
{
"type":"Point",
"coordinates": [4.585222000000789, 51.91327390361854]
}
Thanks @Don, it worked:
Just in case, someone is trying to publish the coordinates from an ESP:
> char mqtt_payload[100] = "";
> snprintf (mqtt_payload, 100, "{ \"type\":\"Point\", \"coordinates\":[ %lf, %lf\n]}", longitude, latitude);
This is how it should look.