# Determining whether Notecard WiFi is connected to WiFi through Notecard API

**URL:** https://discuss.blues.com/t/determining-whether-notecard-wifi-is-connected-to-wifi-through-notecard-api/2466
**Category:** Notecard API
**Created:** [November 27, 2024, 7:42pm UTC](https://discuss.blues.com/t/determining-whether-notecard-wifi-is-connected-to-wifi-through-notecard-api/2466 "2024-11-27T19:42:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yunzheng](https://avatars.discourse-cdn.com/v4/letter/y/2acd7d/32.png) [@yunzheng](https://discuss.blues.com/u/yunzheng)
#### Post date: [November 27, 2024, 7:42pm UTC](https://discuss.blues.com/t/determining-whether-notecard-wifi-is-connected-to-wifi-through-notecard-api/2466/1 "2024-11-27T19:42:47Z")

</div>

How could I determine whether a Notecard WiFi is connected to WiFi through the Notecard API?

I was thinking about using a `card.wireless` request and looking at the `status` field, but I’m not sure which [status codes](https://dev.blues.io/notecard/notecard-walkthrough/notecard-error-and-status-codes/#status-codes) would indicate this, and whether or not it’s even reliable.

I was also thinking about using a `card.wireless` request and looking at whether the `net` field contains a positive value for `bars`. Would this work?

---

<div class="post-metadata">

### Author: ![abucknall](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/abucknall/32/1335_2.png) [@abucknall](https://discuss.blues.com/u/abucknall)
#### Post date: [November 27, 2024, 7:53pm UTC](https://discuss.blues.com/t/determining-whether-notecard-wifi-is-connected-to-wifi-through-notecard-api/2466/2 "2024-11-27T19:53:56Z")

</div>

Hi @yunzheng,

You’re on the right track! You could use the `card.wireless` API and then check the `status` field for the code `{network-up}`. I believe this would be the simplest method to check that it is connected to a network.

Alex

---

<div class="post-metadata">

### Author: ![yunzheng](https://avatars.discourse-cdn.com/v4/letter/y/2acd7d/32.png) [@yunzheng](https://discuss.blues.com/u/yunzheng)
#### Post date: [November 28, 2024, 12:30am UTC](https://discuss.blues.com/t/determining-whether-notecard-wifi-is-connected-to-wifi-through-notecard-api/2466/3 "2024-11-28T00:30:43Z")

</div>

Thank you. Would it also be possible for the `status` to have the code `network-up`? I’m wondering if I should also check for that.

---

<div class="post-metadata">

### Author: ![abucknall](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/abucknall/32/1335_2.png) [@abucknall](https://discuss.blues.com/u/abucknall)
#### Post date: [November 28, 2024, 11:40am UTC](https://discuss.blues.com/t/determining-whether-notecard-wifi-is-connected-to-wifi-through-notecard-api/2466/4 "2024-11-28T11:40:06Z")

</div>

Do you mean the response from [{“req”:“card.status”}](https://dev.blues.io/api-reference/notecard-api/card-requests/latest/#card-status)? I don’t believe so; you can check if the Notecard is connected to Notehub but not specifically if it is connected to a WiFi network, only if the WiFi radio is powered on. I can see how this might be confusing!

Let me discuss internally and see how we can potentially clear up the ambiguity with the status responses from `card.wireless` vs `card.status`.

Alex
