Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
epacket_bt_peripheral.h
Go to the documentation of this file.
1
9
10#ifndef INFUSE_SDK_INCLUDE_INFUSE_EPACKET_INTERFACE_EPACKET_BT_PERIPHERAL_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_EPACKET_INTERFACE_EPACKET_BT_PERIPHERAL_H_
12
13#include <stdbool.h>
14#include <stdint.h>
15
16#include <zephyr/toolchain.h>
17
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
31
33#define epacket_bt_peripheral_frame epacket_v0_versioned_frame_format
34
43bool epacket_bt_peripheral_cloud_uplink_subscribed(const struct device *dev, struct bt_conn *conn);
44
56int epacket_bt_peripheral_cloud_uplink_send(const struct device *dev, struct bt_conn *conn,
57 struct net_buf *buf);
58
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* INFUSE_SDK_INCLUDE_INFUSE_EPACKET_INTERFACE_EPACKET_BT_PERIPHERAL_H_ */
Common packet structures.
ePacket defines for Bluetooth
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.
bool epacket_bt_peripheral_cloud_uplink_subscribed(const struct device *dev, struct bt_conn *conn)
Check whether the CLOUD_UPLINK characteristic has been subscribed.