I see this error
{"req":"note.add","body":{"ncvoltage":11.11,"nctemp":22.22,"battery":33.33,"current":44.44,"ftemp":55.55,"pressure":6666.66,"humidity":77.77},"file":"fred.qo","template":true}
{"err":"unrecognized template field type indicator: 11.110000 {template-incompatible}"}
when I run this code on an MCU connected over I2C to a notecard
// establish sensor data template to optimise queue and data usage
req = nc.newRequest("note.add");
if (req != NULL) {
// Create the body for a template that will be used to send notes below
J *body = JCreateObject();
if (body != NULL) {
// Define the JSON template
JAddNumberToObject(body, "ncvoltage", 11.11);
JAddNumberToObject(body, "nctemp", 22.22);
JAddNumberToObject(body, "battery", 33.33);
JAddNumberToObject(body, "current", 44.44);
JAddNumberToObject(body, "ftemp", 55.55);
JAddNumberToObject(body, "pressure", 6666.66);
JAddNumberToObject(body, "humidity", 77.77);
// Add the body to the request
JAddItemToObject(req, "body", body);
}
else {
nc.logDebug("Failed to create template body\n");
}
// Create a template of the payload that will be used to send
// notes below
// JAddNumberToObject(req, "length", sizeof(myBinaryPayload));
// Register the template in the output queue notefile
JAddStringToObject(req, "file", "fred.qo");
JAddBoolToObject(req, "template", true);
nc.sendRequest(req);
}
else {
nc.logDebug("Failed to create note template\n");
}
Please note that this code is derived from
https://github.com/blues/note-arduino/blob/master/examples/Example5_UsingTemplates/Example5_UsingTemplates.ino
Not sure where to start - what might be causing this issue? - thanks