I’m attempting to use the GoogleMapsDeviceLocator library on an E0 LTE and the integration doesn’t seem to be firing. The integration is set up and the “test” was successful. According to the Console and the LED on the dev board I haven’t lost connection other than intentional resets. (I have a very strong -48 dBm signal currently.) Build is targeted at v0.8.0-rc.11.
#include <google-maps-device-locator.h>
SerialLogHandler logHandler;
GoogleMapsDeviceLocator locator;
void setup() {
Serial.begin(9600);
locator.withSubscribe(locationCallback).withLocatePeriodic(30);
}
void locationCallback(float lat, float lon, float accuracy) {
String data = String::format(
"{ \"lat\": \"%f\", \"lon\": \"%f\", \"acc\": \"%f\" }",
lat, lon, accuracy);
Particle.publish("Callback", data, PRIVATE);
}
void loop() {
locator.loop();
}
When connected with serial, I’m getting nothing.
Any ideas would be greatly appreciated. Is there any known limitation with the CAT-M1 and this integration?
As a fun little side note, if I unplug the USB cable from my computer while running ‘particle serial monitor’ I get a BSOD.