![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Public Member Functions | |
RAKBleCharacteristic (uint16_t characteristicUUID) | |
void | setProperties (RAK_CHARS_PROPERTIES prop) |
void | setPermission (RAK_CHARS_SECURITY_REQ read_write_perm) |
void | setFixedLen (uint16_t fixed_len) |
void | begin () |
void | notify (uint8_t *notify_data) |
void | write (uint8_t *send_data) |
bool | notifyEnabled (void) |
void | setCccdWriteCallback (void(*userFunc)(uint16_t, uint8_t *)) |
void | setWriteCallback (void(*userFunc)(uint16_t, uint8_t *)) |
RAKBleCharacteristic | ( | uint16_t | characteristicUUID | ) |
characteristicUUID | The base is the same as the base uuid used when construct an instance BLEService, only provided the 3rd and 4th byte means characteristic (16bit UUID) |
void setProperties | ( | RAK_CHARS_PROPERTIES | prop | ) |
RAKBleCharacteristic bslc = RAKBleCharacteristic(characteristicUUID)
prop | currently supports (RAK_CHR_PROPS_NOTIFY/RAK_CHR_PROPS_READ) |
void setPermission | ( | RAK_CHARS_SECURITY_REQ | read_write_perm | ) |
RAKBleCharacteristic bslc = RAKBleCharacteristic(characteristicUUID)
read_write_perm | RAK_SET_OPEN |
void setFixedLen | ( | uint16_t | fixed_len | ) |
RAKBleCharacteristic bslc = RAKBleCharacteristic(characteristicUUID)
fixed_len | the length of the incoming data for notify or write |
void begin | ( | ) |
RAKBleCharacteristic bslc = RAKBleCharacteristic(characteristicUUID)
void notify | ( | uint8_t * | notify_data | ) |
RAKBleCharacteristic bslc = RAKBleCharacteristic(characteristicUUID)
notify_data | an array to send as a series of bytes |
void write | ( | uint8_t * | send_data | ) |
RAKBleCharacteristic bslc = RAKBleCharacteristic(characteristicUUID)
send_data | an array to send as a series of bytes |
bool notifyEnabled | ( | void | ) |
RAKBleCharacteristic bslc = RAKBleCharacteristic(characteristicUUID)
TRUE | : The mobile apps notification is enabled |
FALSE | : The mobile apps notification is not enabled |
void setCccdWriteCallback | ( | void(*)(uint16_t, uint8_t *) | userFunc | ) |
RAKBleCharacteristic bslc = RAKBleCharacteristic(characteristicUUID)
userFunc | callback function |
void setWriteCallback | ( | void(*)(uint16_t, uint8_t *) | userFunc | ) |
RAKBleCharacteristic bslc = RAKBleCharacteristic(characteristicUUID)
userFunc | callback function |