bt_mesh_conn_cb struct
Connection callback structure. This structure is used for tracking the state of a connection. It is registered with the help of the bt_mesh_gatts_conn_cb_register() API. It's permissible to register multiple instances of this bt_conn_cb type, in case different modules of an application are interested in tracking the connection state. If a callback is not of interest for an instance, it may be set to NULL and will as a consequence not be used for that instance.
Fields
A new connection has been established. This callback notifies the application of a new connection. In case the err parameter is non-zero it means that the connection establishment failed.
A connection has been disconnected. This callback notifies the application that a connection has been disconnected.