mesh: define MESH_SUBEVENT_ATTENTION_TIMER

This commit is contained in:
Matthias Ringwald 2019-07-16 12:27:25 +02:00
parent d06e05df4a
commit 75c1e52712
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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