![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Functions | |
void | start (uint8_t adv_time) |
void | stop (void) |
bool | available (void) |
char | read (void) |
void | write (uint8_t *data, uint16_t size=6) |
void | setPIN (uint8_t *key, uint16_t size) |
void | setPermission (RAK_CHARS_SECURITY_REQ permission) |
void start | ( | uint8_t | adv_time | ) |
adv_time | advertising timeout in seconds. If x = 0, advertising never stops |
void stop | ( | void | ) |
void setup() { api.ble.uart.stop(); } void loop() { }
bool available | ( | void | ) |
TRUE | : receive data from the ble device |
FALSE | : nothing to get |
char read | ( | void | ) |
void write | ( | uint8_t * | data, |
uint16_t | size = 6 |
||
) |
data | an array to send as a series of bytes |
size | the date length that write to the ble device |
void setPIN | ( | uint8_t * | key, |
uint16_t | size | ||
) |
key | the key to set the passkey(6 digits only) |
size | the length of key(can only be 6) |
void setPermission | ( | RAK_CHARS_SECURITY_REQ | permission | ) |
permisssion | This will cause apps to perform pairing with static PIN we set RAK_SET_ENC_WITH_MITM RAK_SET_ENC_NO_MITM |