This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What is the canonical way a mesh sensor device communicates state

I've played with the Generic OnOff Model Server in a mesh network.
It seems like the way state of whether the device is on or off is communicated is through an access message with opcode corresponding to OnOff Status (0x82 0x04).

i.e a 3 byte bluetooth mesh access message of 0x82 0x04 0x01 would mean the device is on,  0x82 0x04 0x00 would mean the device is off. 

I'm interested in setting up the right/canonical way for a device to communicate presence detection to a mesh network. 
From the below link [1] I see that there is a "Presence Detected" mesh property that is predefined. 

[1] https://www.bluetooth.com/specifications/mesh-specifications/mesh-properties/

1. How would a device communicate it's presence property to participants in a mesh network? 
2. Is there a standard (interoperable) way of doing this? (And is it documented somewhere?)
    - Is it through access messages with a specific opcode? 
    - If it is, what does the parameter format look like?
    - Is the device supposed to expose it through a GATT characteristic or Service Data? 




Related