roblans / ZWave4Net

ZWave4Net is a .NET library that interfaces with the Aeotec / Aeon Labs Z-Stick.
MIT License
41 stars 34 forks source link

EndpointID and ControllerID switched #10

Closed rpbrongers closed 7 years ago

rpbrongers commented 7 years ago

According to my experience the endpointID comes first (index 0) in the payload (verified with all of my MultiInstance devices) The second index turns out not to be the controllerID, but the destination endpoint id (I think to support direct association between instances from one multichannel device to another, although I'm not sure because I don't have such associations :-) This doc is helpful: http://z-wave.sigmadesigns.com/wp-content/uploads/2016/08/SDS12657-12-Z-Wave-Command-Class-Specification-A-M.pdf -> page 484 in this case.

roblans commented 7 years ago

Merged and committed. Thanks for your contribution.