NordicSemiconductor/Android-nRF-Mesh-Library

Deserialize nodeFeatures are wrong

Rawa opened this issue · 0 comments

Rawa commented

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

public Features(@FeatureState final int friend, @FeatureState final int lowPower, @FeatureState final int proxy, @FeatureState final int relay) {

Describe the bug:

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