Closed alexryd closed 3 years ago
Works!
I'd still like to suggest to remove line 64 (multicastInterface: networkInterface,
) though. networkInterface is null
anyway and removing this will make sure node-coap adds membership to all available interfaces.
Nice!
Some users of my homebridge-shelly plugin need the networkInterface
option so I can't remove that. On some systems, trying to add a UDP membership to a virtual network interface will result in an error, so in that case you need to be able to specify which interface you want.
Ok clear.
Does this work with the new motion sensor as well @jghaanstra?
My motion sensor just crashed trying to update the unicast address. Cant get it online anymore.
Hmm, strange. It turned itself off (shipping state). But yes, these changes also works with the motion sensor.
Ok great, thanks. I'm going to merge and deploy this now then.
This will change the message code for Shelly unicast messages from 2.05 to 0.30 right before they are handled by the server, to work around the fact that the node-coap server will drop any requests with codes that don't start with a 0.
@jghaanstra Can you see if this works for you?