Folks,
Strange problem here. My Electron is publishing fine but I get a strange response to my
"curl https://api.particle.io/v1/devices/events?access_token=…"
Essentially i get the proper output to the line
String gps_line =
"{\"lat\":" + String(convertDegMinToDecDeg(GPS.latitude))
+ ",\"lon\":-" + String(convertDegMinToDecDeg(GPS.longitude))
+ ",\"i\":" + String(accelMax)
+ ",\"it\":" + String(maxImpactTime)
+ ",\"ila\":" + String(convertDegMinToDecDeg(impactLat))
+ ",\"ilo\":" + String(convertDegMinToDecDeg(impactLong))
+ ",\"a\":" + String(GPS.altitude)
+ ",\"q\":" + String(GPS.fixquality)
+ ",\"spd\":" + String(GPS.speed)
+ ",\"mot\":" + String(motionInTheLastMinute)
+ ",\"s\": " + String(GPS.satellites)
+ ",\"vcc\":" + String(fuel.getVCell())
+ ",\"soc\":" + String(fuel.getSoC())
+ "}";
status = gps_line;
Serial.println(gps_line);
Particle.publish(MY_NAME + String("_location"), gps_line, 60, PRIVATE);
but then I get a fast repeating list of
Events called GPS with Bad Checksums… The weird thing is… I’m not publishing any event called GPS… Is it possible that this is some residual function or variable share from some earlier code that the system thinks I’m still using ?
*> event: AssetTracker_location*
*> data: {"data":"{\"lat\":44.381274,\"lon\":-72.938298,\"i\":14816,\"it\":1458157894,\"ila\":44.366667,\"ilo\":72.933333,\"a\":106.599998,\"q\":2,\"spd\":0.000000,\"mot\":0,\"s\": 8,\"vcc\":3.978000,\"soc\":89.589844}","ttl":"60","published_at":"2016-03-16T19:55:14.170Z","coreid":"590051000951343334363138"}*
*> event: GPS*
*> data: {"data":"{ error: \"bad checksum\"}","ttl":"60","published_at":"2016-03-16T19:55:18.059Z","coreid":"590051000951343334363138"}*
*> event: GPS*
*> data: {"data":"{ error: \"bad checksum\"}","ttl":"60","published_at":"2016-03-16T19:55:18.219Z","coreid":"590051000951343334363138"}*
*> event: GPS*
*> data: {"data":"{ error: \"bad checksum\"}","ttl":"60","published_at":"2016-03-16T19:55:21.469Z","coreid":"590051000951343334363138"}'*
*> .... etc....*
Any idea where I’m getting this phantom publication… and why it has a bad checksum ? I think this is eating through my data allotment !
any help appreciated. Thanks
-jc