Hello,
I am trying to resolve the following bad commands:
Any help or guidance will be appreciated!
C++ code:
bool lte_send(String text){
J *req = notecard.newRequest("hub.set");
JAddStringToObject(req, "start","true");
notecard.sendRequest(req);
req = notecard.newRequest("web.get");
if (req != NULL) {
JAddStringToObject(req, "route", "weather");
JAddStringToObject(req, "name", text.c_str());
notecard.sendRequest(req);
}
//put back to periodic
req = notecard.newRequest("hub.set");
JAddStringToObject(req, "stop","true");
notecard.sendRequest(req);
return true;
}
Notecard responses:
{“req”:“hub.set”,“start”:“true”}
{“err”:“cannot interpret JSON: unknown combination of addressing mode and dtd datatype for string {io}”}
{“req”:“web.get”,“route”:“weather”,“name”:“dateutc=2022-08-08+00%3A28%3A12&tempf=78.46&humidity=45.03&dewptf=58.67&baromin=29.64&winddir=0.00&windspeedmph=nan&rainin=0.00&dailyrainin=0.00&UV=&soilmoisture=&action=updateraw&realtime=1&rtfreq=60”}
{“total”:1}
{“req”:“hub.set”,“stop”:“true”}
{“err”:“cannot interpret JSON: unknown combination of addressing mode and dtd datatype for string {io}”}