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

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 ?.

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!