# Check if bluetooth device is connected or not

**URL:** <https://discourse.nodered.org/t/check-if-bluetooth-device-is-connected-or-not/13790>\
**Category:** Hardware\
**Created:** [29 July 2019 10:56 UTC](https://discourse.nodered.org/t/check-if-bluetooth-device-is-connected-or-not/13790 "2019-07-29T10:56:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HasseneKh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hassenekh/32/10499_2.png) [@HasseneKh](https://discourse.nodered.org/u/HasseneKh)\
**Post date:** [29 July 2019 10:56 UTC](https://discourse.nodered.org/t/check-if-bluetooth-device-is-connected-or-not/13790/1 "2019-07-29T10:56:37Z")

</div>

hi , i'm working in project to collect data from sensors with bluetooth (data : json) , and i want to get status of bluetooth device is connected or not , i have data gathered from sensors or not .. the data json still the same if i disconnect if device so can't judge if bluetooth connected or not .

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [29 July 2019 11:03 UTC](https://discourse.nodered.org/t/check-if-bluetooth-device-is-connected-or-not/13790/2 "2019-07-29T11:03:08Z")

</div>

What node are you using? What does your flow look like?

---

<div class="post-metadata">

**Author:** ![HasseneKh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hassenekh/32/10499_2.png) [@HasseneKh](https://discourse.nodered.org/u/HasseneKh)\
**Post date:** [29 July 2019 11:27 UTC](https://discourse.nodered.org/t/check-if-bluetooth-device-is-connected-or-not/13790/3 "2019-07-29T11:27:07Z")

</div>

i'm using serial port of node red

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [29 July 2019 11:35 UTC](https://discourse.nodered.org/t/check-if-bluetooth-device-is-connected-or-not/13790/4 "2019-07-29T11:35:06Z")

</div>

And what module do you have connect to the serial port?  
Link/pdf?

---

<div class="post-metadata">

**Author:** ![HasseneKh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hassenekh/32/10499_2.png) [@HasseneKh](https://discourse.nodered.org/u/HasseneKh)\
**Post date:** [29 July 2019 11:39 UTC](https://discourse.nodered.org/t/check-if-bluetooth-device-is-connected-or-not/13790/5 "2019-07-29T11:39:36Z")

</div>

module bluetooth HC-05 , i'm alredy connected to it and i have the data

> **[HC-05 Serial Bluetooth Module - Tutorial](https://electrosome.com/hc-05-serial-bluetooth-module/)**
>
> HC-05 Serial Bluetooth Module Tutorial, AT Commands, Module Operation, Specifications, Pin Description, HC-05 vs HC-06, Connection between HC-05 & MC
