BresserWeatherSensorLW
Bresser 868 MHz Weather Sensor Radio Receiver based on ESP32/RP2040 and SX1262/SX1276/LR1121 - sends data to a LoRaWAN Network
Loading...
Searching...
No Matches
LoadSecrets.h File Reference

Load LoRaWAN secrets from file 'secrets.json' on LittleFS, if available. More...

#include <Arduino.h>
#include <LittleFS.h>
#include <ArduinoJson.h>
#include "logging.h"
Include dependency graph for LoadSecrets.h:

Go to the source code of this file.

Functions

void loadSecrets (bool requireNwkKey, uint64_t &joinEUI, uint64_t &devEUI, uint8_t *nwkKey, uint8_t *appKey)
 Load LoRaWAN secrets from file 'secrets.json' on LittleFS, if available.

Detailed Description

Load LoRaWAN secrets from file 'secrets.json' on LittleFS, if available.

Function Documentation

◆ loadSecrets()

void loadSecrets ( bool requireNwkKey,
uint64_t & joinEUI,
uint64_t & devEUI,
uint8_t * nwkKey,
uint8_t * appKey )

Load LoRaWAN secrets from file 'secrets.json' on LittleFS, if available.

Returns all values by reference/pointer

Use https://github.com/earlephilhower/arduino-littlefs-upload for uploading the file to Flash.

Parameters
requireNwkKey
joinEUI
devEUI
nwkKey
appKey