Hi Rob, here is the code I am using to actually send the notes to Notehub:
// send data to cloud
J *req = notecard.newRequest(“note.add”);
if (req != NULL) {
JAddBoolToObject(req, “sync”, true);
JAddStringToObject(req, “file”, “env.qo”);
J *body = JCreateObject();
if (body != NULL) {
JAddNumberToObject(body, “temperature”, senTemp);
JAddNumberToObject(body, “humidity”, senHumid);
JAddNumberToObject(body, “pm1”, PM1_0);
JAddNumberToObject(body, “pm25”, PM2_5);
JAddNumberToObject(body, “pm10”, PM10_0);
JAddNumberToObject(body, “co2”, co2);
JAddItemToObject(req, “body”, body);
}
notecard.sendRequest(req);
}
Re SYNC, as you can see, I am using “sync” : true as mentioned by you and others (Carl Henderson) as necessary for low-latency sync. I am guessing that there might be a longish delay when the Notecard “switches” from cell to GPS and back…but can this really take as much as 5 minutes? If so, then I am probably headed to a standalone GPS, something I had hoped to avoid by going to this Notecard solution in the first place. I will also check my cell signal strength to make sure I am within spec for proper operation. Thanks again for the advice!