i had lost cellular connection now it is restored
Tue 06:54:56 PM Tue 06:54:58 PM Coxsackie NY dev:868050040372944 _session.qo {“why”:“first sync, continuous connection mode (TLS)”}
Tue 06:54:42 PM Tue 06:55:02 PM Coxsackie NY dev:868050040372944 _health.qo {“text”:“boot (brown-out & hard reset [13080])”}
but still not sending data to notehub. could this be the firmware 1.5.5.13080?
What response are you seeing from the Notecard when adding a Note?
in the arduino serial monitor i see this
19:14:34.933 → {“req”:“note.add”,“file”:“sensors.qo”,“body”:{“status”:“hot”,“temp”:33.375,“voltage”:5.00814},“payload”:“AAAAAACwQEAQSiJMVggUQA==”}
19:14:35.132 → {“template”:true}
the sketches seem to work fine with serial monitor.
not sure if this helps
Start making requests below.
********************************************
> {"req": "card.version"}
{
"body": {
"org": "Blues Wireless",
"product": "Notecard",
"version": "notecard-1.5.5",
"ver_major": 1,
"ver_minor": 5,
"ver_patch": 5,
"ver_build": 13080,
"built": "May 28 2021 17:11:58"
},
"version": "notecard-1.5.5.13080",
"device": "dev:868050040372944",
"name": "Blues Wireless Notecard",
"sku": "NOTE-WBNA500",
"board": "1.11",
"api": 1
}
> {"req":"hub.sync.status"}
{
"status": "time is behind local time by -1 seconds",
"time": 1625011673,
"completed": 2129
}
I’ve been reading back through the conversation, and I just want to confirm that the following line in your example code was scrubbed by you, but actually has your real product id in it instead.
#define myProductID "com.xxxxxxxxxxxxxxxxxx"
Brandon,
correct real product id in it instead.
Fred,
Would you mind to issue a manual sync with:
{"req":"hub.sync"}
Brandon,
Ok
> {"req":"hub.sync"}
{}
When I saw your logs…
19:14:34.933 → {“req”:“note.add”,“file”:“sensors.qo”,“body”:{“status”:“hot”,“temp”:33.375,“voltage”:5.00814},“payload”:“AAAAAACwQEAQSiJMVggUQA==”}
19:14:35.132 → {“template”:true}
I didn’t see "sync": true
, so that means you are successfully queuing notes, but would have to wait for the interval that was scheduled with the hub.set
, outbound
parameter.
If you check your project on Notehub.io (now the sync has completed), do you see that your Notes have arrived?
i just plugged my feather dev board back in so the notecard as to sync.
Brandon,
i added “JAddBoolToObject(req, “sync”, true);”
to the Example5_using template and now it sends data to the notehub.
but i have this in the sketch i posted earlier with the door switch and that will not send data.
Can you re-enable the debugging statements in your sketch?
For example:
//Serial.println("Door is Open...");
and add a new debug statement as an else
to the if
condition.
...
else {
Serial.println("Door is Closed...");
}
Also, how about adding a 10 second delay to the loop?
delay(10000);
Brandon,
Still the same result arduino serial working great now i have the door closed with the 10 second delay.
But the notehub no data.
i’m headed to bed i will have my unit with me tomorrow at work.
Hey @fwarden let’s take the Arduino sketch out of the mix and make sure things are a-ok on the Notecard side. Can you run the following requests one at-a-time in the Notecard playground and let me know what output you see after each.
{"req":"card.restore","delete":true}
Note: The notecard will reset and disconnect from the web terminal after this command, so you’ll need to reconnect before proceeding.
{"req":"hub.set","product":"<your_product_uid>","mode":"continuous"}
{"req":"note.add","sync":true,"body":{"door_state":"open"}}
{"req":"hub.sync.status"}
Once we confirm that this works and your Note shows up in Notehub, we can troubleshoot the Arduino/ESP32 side of things.
Brandon,
I was able to put fresh eyes on this early this morning and found the issue i was missing
notecard.sendRequest(req); at the end of the sketch now i am getting door open on notehub.