Closed gregbradley closed 8 years ago
@@ master #41 diff @@
==========================================
Files 2 2
Lines 269 269
Methods 57 57
Messages 0 0
Branches 43 43
==========================================
Hits 242 242
Misses 27 27
Partials 0 0
Powered by Codecov. Last update 6b55226...f973204
While this is good safeguard in general, I'd prefer filtering out such unwanted devices in https://github.com/timonreinhard/wemo-client/blob/master/index.js#L57 already to address the root cause. Any chance you can check msg
to come from a Wemo device?
I addressed your issue by filtering the SSDP responses (aea39838007af278405635adc60c40e8ef5c06b0) so with current master you shouldn't run again in a situation where the client tries to connect to your Roku player or anything else that isn't a Wemo.
I was getting some errors discovery devices. Found a device that was responding with unexpected JSON syntax (see below). As this is not a Belkin device just going to ignore rather than add additional handling.