Tried the Arduino example (File → Examples → Blues Wireless Card → Example1_Notecardbasics) and get the following error.
09:16:08.975 → {“req”:“hub.set”,“product”:“com.foobar.demo:demo_1”,“mode”:“continuous”}
09:16:19.072 → reply to request didn’t arrive from module in time
09:16:19.072 → {“err”:“transaction timeout”}
09:16:19.823 → notecard not responding
09:16:20.838 → notecard not responding
09:16:21.853 → notecard not responding
09:16:22.826 → notecard not responding
09:16:23.845 → notecard not responding
09:16:24.830 → notecard not responding
09:16:25.835 → notecard not responding
09:16:26.866 → notecard not responding
09:16:27.850 → notecard not responding
09:16:28.834 → notecard not responding
09:16:29.350 → Sync Status = None
Fyi, the product I used is valid and just replaced with com.foobar.demo:demo_1 for discussion.
Already have done device firmware update 1.5.2.12200 to 1.5.3 12460.
Also, confirmed using quickstart browser that I can hub.sync and send / receive messages using (Quickstart - Blues Developers) so know it’s not anything from notecard to notehub.
Hardware using is Adafruit ESP32 Feather with Serial1 for TX, RX and Arduino Library approach.
Just can’t seem to get the feather RX, TX to get replies back from notecarrier/notecard.
What am I missing? Is this timeout issue? Is notecard in a state that I need to reset before it sends replies back to adafruit? Spent 3 days already so far to get to this point… need some assistance please:)
Here is the adruino code:
#include <Notecard.h>
#define serialNotecard Serial1
#define serialDebugOut Serial
#define myProductID “com.foobar.demo:demo_1”
Notecard notecard;
void setup()
{
delay(2500);
serialDebugOut.begin(115200);
notecard.setDebugOutputStream(serialDebugOut);
notecard.begin(serialNotecard, 9600);
J *req = notecard.newRequest("hub.set");
JAddStringToObject(req, "product", myProductID);
JAddStringToObject(req, "mode", "continuous");
notecard.sendRequest(req);
}
void loop()
{
String sync_status = “None”;
J *rsp = notecard.requestAndResponse(notecard.newRequest(“hub.sync.status”));
if (rsp != NULL) {
sync_status = JGetString(rsp, “status”);
notecard.deleteResponse(rsp);
}
serialDebugOut.print("Sync Status = ");
serialDebugOut.println(sync_status);
return;
}