Corrections to node-red-node-discovery (#380)

1- Ensure we stop advertising before creating a new advertiser if the object exists
2- Allow bool false to stop advertising
3- Documentation correction (state is in msg.payload, not in msg)
This commit is contained in:
Nathanaël Lécaudé
2017-11-23 15:53:44 -05:00
committed by Dave Conway-Jones
parent ab99139ce3
commit c153024c91
4 changed files with 8 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ service discovery capability.
`msg.payload` contains the service object on both arrival and leaving.
`msg.state` contains boolean true or false depending if the service has arrived (true) or gone away (false)..
`msg.payload.state` contains boolean true or false depending if the service has arrived (true) or gone away (false)..
Within the `msg.payload` object the most interesting things are:
@@ -48,7 +48,7 @@ For a full list of official service types see [this list](http://www.dns-sd.org/
Provides a Bonjour / Avahi / Zeroconf announcement node.
If `msg.payload` is 0 - the announcement is stopped. Any other value starts the announcement process.
If `msg.payload` is `false` - the announcement is stopped. Any other value starts the announcement process.
The announcement can be customised by the msg if not configured in the edit panel.