|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
ePacket Bluetooth GATT peripheral interface More...
Macros | |
| #define | epacket_bt_peripheral_frame epacket_v0_versioned_frame_format |
| Bluetooth GATT peripheral interface frame format, epacket_v0_versioned_frame_format. | |
Functions | |
| bool | epacket_bt_peripheral_cloud_uplink_subscribed (const struct device *dev, struct bt_conn *conn) |
| Check whether the CLOUD_UPLINK characteristic has been subscribed. | |
| int | epacket_bt_peripheral_cloud_uplink_send (const struct device *dev, struct bt_conn *conn, struct net_buf *buf) |
| Queue an ePacket on the CLOUD_UPLINK characteristic on a specific connection. | |
ePacket Bluetooth GATT peripheral interface
| #define epacket_bt_peripheral_frame epacket_v0_versioned_frame_format |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/epacket/interface/epacket_bt_peripheral.h>
Bluetooth GATT peripheral interface frame format, epacket_v0_versioned_frame_format.
| int epacket_bt_peripheral_cloud_uplink_send | ( | const struct device * | dev, |
| struct bt_conn * | conn, | ||
| struct net_buf * | buf ) |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/epacket/interface/epacket_bt_peripheral.h>
Queue an ePacket on the CLOUD_UPLINK characteristic on a specific connection.
| dev | ePacket Bluetooth peripheral device |
| conn | Connection to queue packet on |
| buf | ePacket to queue |
| -EIO | On encryption error |
| -errno | Other error code from bt_gatt_notify |
| bool epacket_bt_peripheral_cloud_uplink_subscribed | ( | const struct device * | dev, |
| struct bt_conn * | conn ) |
#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/epacket/interface/epacket_bt_peripheral.h>
Check whether the CLOUD_UPLINK characteristic has been subscribed.
| dev | ePacket Bluetooth peripheral device |
| conn | Connection to check |