Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ePacket Bluetooth GATT peripheral interface

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.

Detailed Description

ePacket Bluetooth GATT peripheral interface

Macro Definition Documentation

◆ epacket_bt_peripheral_frame

#define epacket_bt_peripheral_frame   epacket_v0_versioned_frame_format

Function Documentation

◆ epacket_bt_peripheral_cloud_uplink_send()

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.

Parameters
devePacket Bluetooth peripheral device
connConnection to queue packet on
bufePacket to queue
Returns
0 On success
Return values
-EIOOn encryption error
-errnoOther error code from bt_gatt_notify

◆ epacket_bt_peripheral_cloud_uplink_subscribed()

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.

Parameters
devePacket Bluetooth peripheral device
connConnection to check
Returns
true if the attribute object has been subscribed.