mesh: add mesh event for message sent

This commit is contained in:
Milanka Ringwald 2019-05-28 11:29:52 +02:00 committed by Matthias Ringwald
parent d935ec8147
commit 1d2d76de00
2 changed files with 17 additions and 0 deletions

View File

@ -2484,4 +2484,11 @@ typedef uint8_t sm_key_t[16];
*/
#define MESH_PROXY_DISCONNECTED 0x22
/**
* @format 1H
* @param subevent_code
* @param con_handle
*/
#define MESH_SUBEVENT_MESSAGE_SENT 0x23
#endif

View File

@ -7543,6 +7543,16 @@ static inline uint16_t map_subevent_parsing_done_get_map_cid(const uint8_t * eve
}
/**
* @brief Get field con_handle from event MESH_SUBEVENT_MESSAGE_SENT
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t mesh_subevent_message_sent_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/* API_END */