mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 14:42:33 +00:00
mesh: define MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED event
This commit is contained in:
parent
f346d6e034
commit
b7a543327c
@ -2514,6 +2514,16 @@ typedef uint8_t sm_key_t[16];
|
|||||||
#define MESH_SUBEVENT_STATE_UPDATE_INT16 0x25
|
#define MESH_SUBEVENT_STATE_UPDATE_INT16 0x25
|
||||||
|
|
||||||
// Mesh Client Events
|
// Mesh Client Events
|
||||||
|
/**
|
||||||
|
* @format 11442
|
||||||
|
* @param subevent_code
|
||||||
|
* @param element_index
|
||||||
|
* @param model_identifier
|
||||||
|
* @param opcode
|
||||||
|
* @param dest
|
||||||
|
*/
|
||||||
|
#define MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED 0x30
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @format 114114
|
* @format 114114
|
||||||
* @param subevent_code
|
* @param subevent_code
|
||||||
@ -2523,7 +2533,7 @@ typedef uint8_t sm_key_t[16];
|
|||||||
* @param target_value // optinal, if value > 0, than remaining_time_ms must be read
|
* @param target_value // optinal, if value > 0, than remaining_time_ms must be read
|
||||||
* @param remaining_time_ms
|
* @param remaining_time_ms
|
||||||
*/
|
*/
|
||||||
#define MESH_SUBEVENT_GENERIC_ON_OFF_STATUS 0x30
|
#define MESH_SUBEVENT_GENERIC_ON_OFF_STATUS 0x31
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @format 114224
|
* @format 114224
|
||||||
@ -2534,6 +2544,6 @@ typedef uint8_t sm_key_t[16];
|
|||||||
* @param target_value // optinal, if value > 0, than remaining_time_ms must be read
|
* @param target_value // optinal, if value > 0, than remaining_time_ms must be read
|
||||||
* @param remaining_time_ms
|
* @param remaining_time_ms
|
||||||
*/
|
*/
|
||||||
#define MESH_SUBEVENT_GENERIC_LEVEL_STATUS 0x31
|
#define MESH_SUBEVENT_GENERIC_LEVEL_STATUS 0x32
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -7645,6 +7645,43 @@ static inline uint16_t mesh_subevent_state_update_int16_get_value(const uint8_t
|
|||||||
return little_endian_read_16(event, 13);
|
return little_endian_read_16(event, 13);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get field element_index from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
|
||||||
|
* @param event packet
|
||||||
|
* @return element_index
|
||||||
|
* @note: btstack_type 1
|
||||||
|
*/
|
||||||
|
static inline uint8_t mesh_subevent_message_not_acknowledged_get_element_index(const uint8_t * event){
|
||||||
|
return event[3];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @brief Get field model_identifier from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
|
||||||
|
* @param event packet
|
||||||
|
* @return model_identifier
|
||||||
|
* @note: btstack_type 4
|
||||||
|
*/
|
||||||
|
static inline uint32_t mesh_subevent_message_not_acknowledged_get_model_identifier(const uint8_t * event){
|
||||||
|
return little_endian_read_32(event, 4);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @brief Get field opcode from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
|
||||||
|
* @param event packet
|
||||||
|
* @return opcode
|
||||||
|
* @note: btstack_type 4
|
||||||
|
*/
|
||||||
|
static inline uint32_t mesh_subevent_message_not_acknowledged_get_opcode(const uint8_t * event){
|
||||||
|
return little_endian_read_32(event, 8);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @brief Get field dest from event MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED
|
||||||
|
* @param event packet
|
||||||
|
* @return dest
|
||||||
|
* @note: btstack_type 2
|
||||||
|
*/
|
||||||
|
static inline uint16_t mesh_subevent_message_not_acknowledged_get_dest(const uint8_t * event){
|
||||||
|
return little_endian_read_16(event, 12);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get field element_index from event MESH_SUBEVENT_GENERIC_ON_OFF_STATUS
|
* @brief Get field element_index from event MESH_SUBEVENT_GENERIC_ON_OFF_STATUS
|
||||||
* @param event packet
|
* @param event packet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user