Data Structures | |
| struct | bt_device |
Functions | |
| bool | bt_connect (const char *addr) |
| bool | bt_connected () |
| bool | bt_disconnect () |
| uint8 | bt_scan (bt_device **list, uint8 timeout) |
| bool | bt_set_name (const char *name) |
| bool bt_connect | ( | const char * | addr | ) |
connect to a device
| addr | address (null-terminated string) |
| bool bt_connected | ( | ) |
return if the device is connected or not
| bool bt_disconnect | ( | ) |
disconnect from the current connection
| uint8 bt_scan | ( | bt_device ** | list, | |
| uint8 | timeout | |||
| ) |
initiate a device scan
| list | pointer that will hold the location of the device list | |
| timeout | time to scan in seconds |
| bool bt_set_name | ( | const char * | name | ) |
set the friendly name of the device
| name | name string (up to 16 characters long) |