NordicSemiconductor / Android-nRF-Mesh-Library

The Bluetooth Mesh Provisioner and Configurator library.
https://www.nordicsemi.com/
BSD 3-Clause "New" or "Revised" License
414 stars 177 forks source link

Deserialize nodeFeatures are wrong #545

Closed Rawa closed 1 year ago

Rawa commented 1 year ago

The deserialization of a node is wrong:

https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/blob/main/mesh/src/main/java/no/nordicsemi/android/mesh/transport/NodeDeserializer.java#L82

Here you can see the constructor https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/blob/5298fd6f52abec2cc74a321833c8ad38380db1ee/mesh/src/main/java/no/nordicsemi/android/mesh/Features.java#L53

Describe the bug:

Relay and Proxy feature are flipped when sent to the constructor.