Skip to content
Snippets Groups Projects
Commit 29292853 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Added some comments

parent 2532225a
No related branches found
No related tags found
No related merge requests found
......@@ -91,10 +91,14 @@ func (zDev *Z2MDevice) Publish(topic string, payload interface{}) {
}
}
// Check if the device is available, Z2M will send an availability message
// if this enable in Z2M config
func (zDev *Z2MDevice) Available() {
zDev.Publish("availability", `{"state": "online"}`)
}
// Ask for a device to dump its state. Z2M doesn't support this but the
// dump-state-ext.js provide this feature
func (zDev *Z2MDevice) Sync() {
zDev.Publish("dump", "{}")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment