Skip to content

Add connected property #54

@andreareginato

Description

@andreareginato

Find a way to understand when a device is connected or not.

When we use MQTT it is easier. We can understand when the physical is connected or not. But, we need to set up a specific channel or service call for that, so that we can understand the mesage comes from the physical device and not from another MQTT client. As far as the MQTT physical device must be able to update the device (still he is not able to do that), if we add a property he can update, things should be fine.

And about the disconnection, we set the device as disconnected when the client who has updated the connect status, get disconnected. Think more anout and try to simplify. Maybe we can generalize and set the value on connection (theoretically there is a unique physical device) and the same for the disconnection.

For the physical devices connected in other way we need a way common way to understand if a device is or is not connected. This may come in a second moment and we should think if it is needed for devices that can't communicate when they are connected or not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions