# Is there a mechanism in Losant that allows the connected state of a peripheral to be noted

**URL:** <https://forums.losant.com/t/is-there-a-mechanism-in-losant-that-allows-the-connected-state-of-a-peripheral-to-be-noted/193>\
**Category:** Help\
**Created:** [July 4, 2016, 5:53am UTC](https://forums.losant.com/t/is-there-a-mechanism-in-losant-that-allows-the-connected-state-of-a-peripheral-to-be-noted/193 "2016-07-04T05:53:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Hoffman](https://forums.losant.com/u/Tim_Hoffman)\
**Post date:** [July 4, 2016, 5:53am UTC](https://forums.losant.com/t/is-there-a-mechanism-in-losant-that-allows-the-connected-state-of-a-peripheral-to-be-noted/193/1 "2016-07-04T05:53:36Z")

</div>

Hi

We are going to be using gateways with a lot of peripherals. We can see that a peripheral is connected  
for instance “This device connects through a Gateway Connected since July 4, 2016 1:12 PM”

however I would like to set a disconnected state at the device level.  
I can just set a attribute on every peripheral via MQTT which holds the peripherals connected state.  
But I was wondering if there is a more explicit mechanism for distinguishing device state of peripherals ?.

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [July 5, 2016, 5:29pm UTC](https://forums.losant.com/t/is-there-a-mechanism-in-losant-that-allows-the-connected-state-of-a-peripheral-to-be-noted/193/2 "2016-07-05T17:29:14Z")

</div>

I think an attribute is a good way to go for now. We don’t currently have any explicit way to set peripheral connection state. Our gateway/peripheral concept is brand new so we’re looking for ways to extend it. Thanks for the suggestion!
