# Return card voltage from sketch

**URL:** <https://discuss.blues.com/t/return-card-voltage-from-sketch/1961>\
**Category:** Uncategorized\
**Created:** [February 16, 2024, 9:39pm UTC](https://discuss.blues.com/t/return-card-voltage-from-sketch/1961 "2024-02-16T21:39:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rayjorgnsen](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rayjorgnsen](https://discuss.blues.com/u/rayjorgnsen)\
**Post date:** [February 16, 2024, 9:39pm UTC](https://discuss.blues.com/t/return-card-voltage-from-sketch/1961/1 "2024-02-16T21:39:18Z")

</div>

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

Thanks

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [February 18, 2024, 1:32am UTC](https://discuss.blues.com/t/return-card-voltage-from-sketch/1961/2 "2024-02-18T01:32:24Z")

</div>

Hi @rayjorgnsen,

You can use the [card.voltage API](https://dev.blues.io/api-reference/notecard-api/card-requests/#card-voltage) to return the voltage level.

---

<div class="post-metadata">

**Author:** ![rayjorgnsen](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rayjorgnsen](https://discuss.blues.com/u/rayjorgnsen)\
**Post date:** [February 18, 2024, 11:57am UTC](https://discuss.blues.com/t/return-card-voltage-from-sketch/1961/3 "2024-02-18T11:57:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rayjorgnsen](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rayjorgnsen](https://discuss.blues.com/u/rayjorgnsen)\
**Post date:** [February 19, 2024, 10:36pm UTC](https://discuss.blues.com/t/return-card-voltage-from-sketch/1961/4 "2024-02-19T22:36:55Z")

</div>

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”, “?”);

```
NoteRequest(req);

```

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

Thanks

---

<div class="post-metadata">

**Author:** ![rayjorgnsen](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rayjorgnsen](https://discuss.blues.com/u/rayjorgnsen)\
**Post date:** [February 20, 2024, 6:41pm UTC](https://discuss.blues.com/t/return-card-voltage-from-sketch/1961/5 "2024-02-20T18:41:41Z")

</div>

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.
