# Device connected

**URL:** <https://forums.losant.com/t/device-connected/844>\
**Category:** Help\
**Created:** [March 31, 2018, 1:20pm UTC](https://forums.losant.com/t/device-connected/844 "2018-03-31T13:20:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_wareham](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@paul\_wareham](https://forums.losant.com/u/paul_wareham)\
**Post date:** [March 31, 2018, 1:20pm UTC](https://forums.losant.com/t/device-connected/844/1 "2018-03-31T13:20:05Z")

</div>

Hi Folks

I have a device connected to the platform by way of a Webhook which then updates the device state. However this shows as offline even though there are actual message being updated, because it’s obviously not a direct mqtt or rest connection.

Is there any way to update the status of the device in a workflow so that it shows a proper connection history?

Thanks

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [March 31, 2018, 4:51pm UTC](https://forums.losant.com/t/device-connected/844/2 "2018-03-31T16:51:17Z")

</div>

We’ve received a number of similar requests for calculating whether a device is “connected” by some factor other than whether it’s currently connected to our [MQTT broker](https://docs.losant.com/mqtt/overview/#the-losant-message-broker), so we’re brainstorming on how to allow users to mark devices as connected – and more importantly, when to flip them back to a “disconnected” state.

In your case, you’re using a webhook to report state. I would assume that if a device reports state through this method, you’d like it to automatically be marked as “connected” even though a continuous connection to is it not open. Would you expect that the device flipped back to disconnected if it did not receive another state report within a certain timeframe? And what if state was reported on the device through some other means besides the webhook?

Thanks!

---

<div class="post-metadata">

**Author:** ![paul\_wareham](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@paul\_wareham](https://forums.losant.com/u/paul_wareham)\
**Post date:** [March 31, 2018, 5:26pm UTC](https://forums.losant.com/t/device-connected/844/3 "2018-03-31T17:26:26Z")

</div>

Hey Dylan

Yes I was thinking it would report connected unless a programmable time delay was surpassed without any updates.

Would it be possible to make a fake mqtt connection to the device via the Webhook just for the purpose of showing connection.
