LoRa-BLE-Sensor
|
This is a library to handle the BLE functionality for the sensor. More...
#include "sensor_ble.h"
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/mgmt/mcumgr/transport/smp_bt.h>
Classes | |
struct | ble_adv_params_t |
Functions | |
LOG_MODULE_REGISTER (SENSOR_BLE, LOG_LEVEL_INF) | |
int | ble_setup (ble_config_t *config) |
Setup the BLE device, with advertisement and connection parameters. | |
int | ble_end (void) |
int | is_ble_advertising (void) |
Check if the BLE device is advertising. | |
int | ble_change_name (ble_config_t *config) |
Change the name of the BLE device. | |
adv_interval_t | get_ble_adv_interval (void) |
Get the advertising interval of the BLE device. | |
Variables | |
struct bt_conn_cb | connection_callbacks |
This is a library to handle the BLE functionality for the sensor.
int ble_change_name | ( | ble_config_t * | config | ) |
Change the name of the BLE device.
config | The configuration of the BLE device. |
int ble_setup | ( | ble_config_t * | config | ) |
Setup the BLE device, with advertisement and connection parameters.
config | The configuration of the BLE device. |
adv_interval_t get_ble_adv_interval | ( | void | ) |
Get the advertising interval of the BLE device.
int is_ble_advertising | ( | void | ) |
Check if the BLE device is advertising.
struct bt_conn_cb connection_callbacks |