mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-01 10:13:29 +00:00
mesh: define MESH_SUBEVENT_ATTENTION_TIMER
This commit is contained in:
parent
d06e05df4a
commit
75c1e52712
@ -2464,6 +2464,13 @@ typedef uint8_t sm_key_t[16];
|
||||
*/
|
||||
#define MESH_SUBEVENT_PB_PROV_COMPLETE 0x1d
|
||||
|
||||
/**
|
||||
* @format 11
|
||||
* @param subevent_code
|
||||
* @param attention_time in seconds
|
||||
*/
|
||||
#define MESH_SUBEVENT_ATTENTION_TIMER 0x1e
|
||||
|
||||
/**
|
||||
* @format 11H
|
||||
* @param subevent_code
|
||||
|
@ -7504,6 +7504,16 @@ static inline uint16_t mesh_subevent_pb_prov_complete_get_pb_transport_cid(const
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field attention_time from event MESH_SUBEVENT_ATTENTION_TIMER
|
||||
* @param event packet
|
||||
* @return attention_time
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){
|
||||
return event[3];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field status from event MESH_SUBEVENT_PROXY_CONNECTED
|
||||
* @param event packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user