LoRa-BLE-Sensor
Loading...
Searching...
No Matches
Macros | Functions
ble_lorawan_service.h File Reference

This is a library to handle the BLE services for the LORAWAN network. This service is used for configuration and debugging of the LORAWAN network. More...

#include "sensor_lorawan.h"
Include dependency graph for ble_lorawan_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BT_UUID_LORAWAN_VAL   BT_UUID_128_ENCODE(0x5a8cd4ac, 0x1520, 0x4c9d, 0xb488, 0x12942c26af40)
 
#define BT_UUID_LORAWAN_ENABLED_VAL   BT_UUID_128_ENCODE(0x5a8cd4ac, 0x1520, 0x4c9d, 0xb488, 0x12942c26af41)
 
#define BT_UUID_LORAWAN_FREQUENCY_VAL   BT_UUID_128_ENCODE(0x5a8cd4ac, 0x1520, 0x4c9d, 0xb488, 0x12942c26af42)
 
#define BT_UUID_LORAWAN_DEV_EUI_VAL   BT_UUID_128_ENCODE(0x5a8cd4ac, 0x1520, 0x4c9d, 0xb488, 0x12942c26af43)
 
#define BT_UUID_LORAWAN_JOIN_EUI_VAL   BT_UUID_128_ENCODE(0x5a8cd4ac, 0x1520, 0x4c9d, 0xb488, 0x12942c26af44)
 
#define BT_UUID_LORAWAN_APP_KEY_VAL   BT_UUID_128_ENCODE(0x5a8cd4ac, 0x1520, 0x4c9d, 0xb488, 0x12942c26af45)
 
#define BT_UUID_LORAWAN   BT_UUID_DECLARE_128(BT_UUID_LORAWAN_VAL)
 
#define BT_UUID_LORAWAN_ENABLED   BT_UUID_DECLARE_128(BT_UUID_LORAWAN_ENABLED_VAL)
 
#define BT_UUID_LORAWAN_FREQUENCY   BT_UUID_DECLARE_128(BT_UUID_LORAWAN_FREQUENCY_VAL)
 
#define BT_UUID_LORAWAN_DEV_EUI   BT_UUID_DECLARE_128(BT_UUID_LORAWAN_DEV_EUI_VAL)
 
#define BT_UUID_LORAWAN_JOIN_EUI   BT_UUID_DECLARE_128(BT_UUID_LORAWAN_JOIN_EUI_VAL)
 
#define BT_UUID_LORAWAN_APP_KEY   BT_UUID_DECLARE_128(BT_UUID_LORAWAN_APP_KEY_VAL)
 

Functions

int ble_lorawan_service_init (lorawan_setup_t *setup)
 Connect LoRaWAN setup configuration to LoRaWAN BLE Service.
 

Detailed Description

This is a library to handle the BLE services for the LORAWAN network. This service is used for configuration and debugging of the LORAWAN network.

Author
Tyler Garcia
Version
0.1
Date
2025-05-06

Function Documentation

◆ ble_lorawan_service_init()

int ble_lorawan_service_init ( lorawan_setup_t setup)

Connect LoRaWAN setup configuration to LoRaWAN BLE Service.

Parameters
setupsetup configuration used to join lorawan network
Returns
int 0 if successful connection, < 0 if unsuccessful