WebThingsIO / thing-url-adapter

Proxy adapter for Web Thing API endpoints
Mozilla Public License 2.0
22 stars 18 forks source link

Watch for things which no longer exist #51

Closed mrstegeman closed 6 years ago

mrstegeman commented 6 years ago

If a thing disappears on the network, we should call removeThing().

benfrancis commented 6 years ago

Is this for mDNS broadcasts and/or Bluetooth beacons?

How does the mDNS scanning work exactly? Why do devices that are no longer broadcasting appear in the list? Presumably they're being cached rather than actively scanned for?

What would qualify something as having disappeared?

mrstegeman commented 6 years ago

@benfrancis Yes. Once they're discovered by the adapter, we never really check that they're still active and prune dead nodes. For instance, if I have a web thing plugged into the wall, and I decide I no longer want it, it will never be removed from the adapter after I unplug it.

mrstegeman commented 6 years ago

Fixed by #55