Return card voltage from sketch

Could someone point me to where I can find how to have my sketch return the card voltage?


Hi @rayjorgnsen,

You can use the card.voltage API to return the voltage level.

1 Like

Thanks. It really helps searches if you know the words to search!!!


Well it’s no surprise but I’m confused. What I want to have happen is that the battery voltage is reported every time data is sent from the card to Notehub.

Since JAddStringToObject(req, “mode”, “?”); returns an estimate of the time the battery should last, among other things, I would think this would be reported back to note hub. If it is I can’t find it.

I should say - I’m just using the example6 and adding in the suggested code
J *req = NoteNewRequest(“card.voltage”);
JAddStringToObject(req, “mode”, “?”);


at the end of the loop - among some other places - without success.


Hold the phone!!! In looking for something else I found that card.voltage is used in the examples2 file. I’ll look this over closer and see what I need to do in my sketch.