Device offline message


#1

hello,

i want to receive an email of one if my devices is not connected as alarm ?


#2

any update


#3

I haven’t seen at the console a way to report when a device goes offline.


#4

Yes there is no way from console,

can we do it like a end point but triggered by console ?


#5

Hi @Moahmed_ELnahas,

Nowadays there is no way to do that using the console but we are working on an event manages that will provide this feature soon.

but, remember that everything shown on the console can be retrieved in a third party program using the REST API. The next message allows retrieving a JSON with an attribute “active” which is the connection status:

https://api.thinger.io/v1/users/<USERID>/devices?id=<DEVICE_ID>&authorization=<ACCESS_TOCKEN_WITH_ADMIN_ACCESS>

for example, calling my “deviceB” I obtain the next answer

{"connection":
   {"active":false,
    "ts":1556872665925}, 
    "description":"deviceB",
    "device":"deviceB"}

You can use this call to retrieve the information from another device or a cloud server and call and endpoint when the value turns “false”.

Sorry about can’t offer your anything simpler today, hope it helps.

best


#6

thank you for your support

waiting for this features