Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
ble_gatt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
15#ifndef __BLE_GATT_H__
16#define __BLE_GATT_H__
17
18#include "../ble_common.h"
19#include <stddef.h>
20
21#ifdef __cplusplus
22extern "C"
23{
24#endif /* __cplusplus */
25
26
33typedef void (*ble_data_received_cb_t)(const char *data, size_t len);
34
43
52int ble_gatt_send_raw_data(const uint8_t *data, size_t len);
53
54
61
70int ble_gatt_get_rssi(int8_t *out_rssi);
71
72
73#ifdef __cplusplus
74}
75#endif /* __cplusplus */
76
77
78#endif /* __BLE_GATT_H__ */
79
int ble_gatt_send_raw_data(const uint8_t *data, size_t len)
Send Neuton inference result over BLE GATT profile.
int ble_gatt_init(ble_data_received_cb_t data_received_cb)
Initialize BLE GATT profile and start advertising.
int ble_gatt_start_advertising(void)
Start BLE advertising.
int ble_gatt_get_rssi(int8_t *out_rssi)
Get RSSI of the current connection.
void(* ble_data_received_cb_t)(const char *data, size_t len)
BLE data received callback, this callback will be called when new data is received from the BLE GATT ...
Definition ble_gatt.h:33