Structure representing a BLE write event.

Public Attributes#

uint8_t

remote device address

uint8_t

Reserved for future use.

uint8_t

Type of the event received from the remote device

  • RSI_BLE_WRITE_CMD_EVENT 0x01

  • RSI_BLE_WRITE_REQUEST_EVENT 0x02

  • RSI_BLE_NOTIFICATION_EVENT 0x03

  • RSI_BLE_INDICATION_EVENT 0x04.

uint8_t

attribute handle

uint8_t

length of attribute value

uint8_t

This contains the attribute value.

Public Attribute Documentation#

dev_addr#

uint8_t rsi_ble_event_write_s::dev_addr[RSI_DEV_ADDR_LEN]

remote device address


reserved#

uint8_t rsi_ble_event_write_s::reserved

Reserved for future use.


pkt_type#

uint8_t rsi_ble_event_write_s::pkt_type

Type of the event received from the remote device

  • RSI_BLE_WRITE_CMD_EVENT 0x01

  • RSI_BLE_WRITE_REQUEST_EVENT 0x02

  • RSI_BLE_NOTIFICATION_EVENT 0x03

  • RSI_BLE_INDICATION_EVENT 0x04.


handle#

uint8_t rsi_ble_event_write_s::handle[2]

attribute handle


length#

uint8_t rsi_ble_event_write_s::length

length of attribute value


att_value#

uint8_t rsi_ble_event_write_s::att_value[RSI_DEV_ATT_LEN]

This contains the attribute value.

The maximum value is 240, see RSI_DEV_ATT_LEN Macro