epacket_bt_central API
More...
epacket_bt_central API
◆ epacket_bt_central_frame
◆ epacket_bt_gatt_connect()
#include <infuse/epacket/interface/epacket_bt_central.h>
Connect to a peer Infuse-IoT device via Bluetooth GATT.
- Note
- If called multiple times on the same connection, the subscribe requests, inactivity and absolute timeout are updated on each call.
- Parameters
-
| conn | Output connection object on success |
| params | ePacket connection parameters |
| security | Output security parameters of the peer device on success |
- Return values
-
| 0 | on success, *conn is valid |
| >0 | on HCI error, *conn is invalid |
| <0 | on Zephyr error, *conn is invalid |
◆ epacket_bt_gatt_notify_recv_func()
| uint8_t epacket_bt_gatt_notify_recv_func |
( |
struct bt_conn * | conn, |
|
|
struct bt_gatt_subscribe_params * | params, |
|
|
const void * | data, |
|
|
uint16_t | length ) |
#include <infuse/epacket/interface/epacket_bt_central.h>
Infuse-IoT Bluetooth GATT characteristic notification handle function.
Public API function so that connections setup through a function other than epacket_bt_gatt_connect can hook the connection up as an ePacket data source dynamically.
- Parameters
-
| conn | Connection object. May be NULL, indicating that the peer is being unpaired |
| params | Subscription parameters. |
| data | Attribute value data. If NULL then subscription was removed. |
| length | Attribute value length. |
- Returns
- BT_GATT_ITER_CONTINUE to continue receiving value notifications. BT_GATT_ITER_STOP to unsubscribe from value notifications.
◆ epacket_bt_gatt_rate_limit_request()
| void epacket_bt_gatt_rate_limit_request |
( |
uint8_t | delay_ms | ) |
|
◆ epacket_bt_gatt_rate_throughput_request()
| int epacket_bt_gatt_rate_throughput_request |
( |
struct bt_conn * | conn, |
|
|
uint16_t | throughput_kbps ) |