Infineon Logo AIROC BTSDK v4.8 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_bt_mesh_event__t Struct Reference

Mesh event structure is exchanged between the app and the mesh models library. More...

Data Fields

struct wiced_bt_mesh_event__tp_next
 Pointer to the next event in the queue.
 
void * complete_callback
 pointer to the send complete callback
 
uint16_t company_id
 Company ID for the Model ID.
 
uint16_t model_id
 Model ID.
 
uint16_t opcode
 Opcode of the message to be transmitted or that has been received.
 
uint16_t hci_opcode
 HCI Opcode received of the message from the MCU being processed.
 
uint8_t element_idx
 Element Index of the source or destination of the message.
 
uint8_t ttl
 Time to leave to be used when transmitting or as received from the peer.
 
uint16_t src
 Address of the source mesh node.
 
uint16_t dst
 Address of the destination mesh node.
 
uint16_t app_key_idx
 Application key index used to decrypt when message was received or which should be used to encrypt to send the message.
 
uint16_t data_len
 Length of data corresponding to the event.
 
uint8_t credential_flag
 One of the CREDENTIAL_FLAG_XXX value. More...
 
uint8_t retrans_cnt
 Number of retransmissions for each message. More...
 
uint8_t retrans_time
 Interval between retransmissions in 50-millisecond steps. More...
 
uint8_t reply
 If TRUE the reply is expected.
 
uint8_t reply_timeout
 Time to wait for the peer model layer acknowledgment in 50-millisecond steps.
 
union {
   uint8_t   tx_flag
 Transmission failed or timeout occurred waiting for peer reply.
 
   uint8_t   rpl_delay
 Model indicates how SEQ shall be saved by the core. More...
 
   uint8_t   tx_delay
 If this value is not 0, wiced_bt_mesh_core_send() will delay sending of the event by this number of milliseconds. More...
 
status
 
uint8_t flags
 
uint16_t friend_addr
 core sets it to friend address when calls complete_callback if segmented message has been sent and acked by the friend OnBehalfOf LPN. More...
 
uint8_t send_segmented
 if non-0 then core uses segmentation to send that message even if it fits into unsegmented message. More...
 
int8_t rssi
 RSSI of the received message.
 
wiced_timer_t timer
 

Detailed Description

Mesh event structure is exchanged between the app and the mesh models library.

Field Documentation

uint8_t credential_flag

One of the CREDENTIAL_FLAG_XXX value.

It comes from publication or credentials of the received message

uint16_t friend_addr

core sets it to friend address when calls complete_callback if segmented message has been sent and acked by the friend OnBehalfOf LPN.

Otherwise it is 0

uint8_t retrans_cnt

Number of retransmissions for each message.

Should be <= 0x7f. It is ignored using 0 value or if it is reply (reply == WICED_TRUE). If bit 0x80 is set, the retransmission count and time applies to number of network rexmits, no access layer rexmits, the time is in 10ms ticks The number of transmissions is the retrans_cnt + 1. The transmission interval = (retrans_time + 1) * 10

uint8_t retrans_time

Interval between retransmissions in 50-millisecond steps.

If bit 0x80 of the retrans_cnt is set then The transmission interval = (retrans_time + 1) * 10

uint8_t rpl_delay

Model indicates how SEQ shall be saved by the core.

It is delay in seconds to save SEQ in RPL. 0-save immediatly; 0xff - don't save;

uint8_t send_segmented

if non-0 then core uses segmentation to send that message even if it fits into unsegmented message.

uint8_t tx_delay

If this value is not 0, wiced_bt_mesh_core_send() will delay sending of the event by this number of milliseconds.


The documentation for this struct was generated from the following file: