Hi,
I want to include the Google Maps Device Locator for my Borons.
The cell information gets published like expected, the webhook execution is working like expected and the API response has the correct lat and lon parameters inside:
I just don’t get a response in the terminal eventhough I added .withSubscripe in my code.
//include of the library:
#include <google-maps-device-locator.h>
//object:
GoogleMapsDeviceLocator locator;
//inside setup():
locator.withSubscribe(locationCallback).withLocatePeriodic(120);
locator.withEventName(“dL”);
//callback function (gets never excecuted):
void locationCallback(float lat, float lon, float accuracy){
Log.info("Location received");
Serial.println(lat);
Serial.println(lon);
}
//locator.loop() gets called within the loop every 100ms
I don’t realy want the data send back to my device. I want to trigger another webhook wo send the payload directly to AWS to store it there. But unless I get an event this is not possible, right?
Thanks for your help.
Best,
Tim