Skip to content
Commit 91fa9194 authored by Michal Narajowski's avatar Michal Narajowski Committed by Carles Cufi
Browse files

Bluetooth: Mesh: Fix Heartbeat Pub/Sub Count/Period Log calculation



Mesh Profile Specification Errata 11737 specifies that
Period/Count Log value 0x11 is not defined Log field
transformation in Table 4.1.

Errata 11737 adds value 0x11 to Log field transformation
table with 2-octet value equal to 0x10000 which does not fit into
two octets. This patch changes period calculation to 32-bit precision.
There is also a special case for publication count. If the
log value is equal to 0x11 then the publication count value
should be 0xfffe. When sending Hearbeat Publication Status
message we should return the same value as the one received
in Publication Set so we have to add a case in hb_pub_count_log().

Co-authored-by: default avatarAlperen Sener <alperen.sener@nordicsemi.no>
Signed-off-by: default avatarMichał Narajowski <michal.narajowski@codecoup.pl>
Signed-off-by: default avatarPavel Vasilyev <pavel.vasilyev@nordicsemi.no>
parent e8e66c85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment