Commit fcee9d6d authored by Eric Duminil's avatar Eric Duminil
Browse files

Starting to parse Lora config

parent 39e7a31b
...@@ -154,8 +154,8 @@ namespace web_config { ...@@ -154,8 +154,8 @@ namespace web_config {
"70B3D5...").build(); "70B3D5...").build();
TextTParameter<17> appEUIParam = TextTParameter<17> appEUIParam =
Builder<TextTParameter<17>>("app_eui").label("App EUI").defaultValue("00EA07...").build(); Builder<TextTParameter<17>>("app_eui").label("App EUI").defaultValue("00EA07...").build();
TextTParameter<32> appKeyParam = TextTParameter<33> appKeyParam =
Builder<TextTParameter<32>>("app_key").label("App key").defaultValue("81CCFE...").build(); Builder<TextTParameter<33>>("app_key").label("App key").defaultValue("81CCFE...").build();
//TODO: Save LoRa session to hidden parameter after first OTAA successful login //TODO: Save LoRa session to hidden parameter after first OTAA successful login
#endif #endif
...@@ -345,5 +345,8 @@ namespace config { ...@@ -345,5 +345,8 @@ namespace config {
bool is_lorawan_active() { bool is_lorawan_active() {
return web_config::loraParams.isActive(); return web_config::loraParams.isActive();
} }
char *lorawan_device_eui = web_config::deviceEUIParam.value();
char *lorawan_app_key = web_config::appKeyParam.value();
char *lorawan_app_eui = web_config::appEUIParam.value();
#endif #endif
} }
...@@ -54,6 +54,9 @@ namespace config { ...@@ -54,6 +54,9 @@ namespace config {
// LORAWAN // LORAWAN
#if defined(ESP32) #if defined(ESP32)
bool is_lorawan_active(); // also defined for ESP8266, and set to false bool is_lorawan_active(); // also defined for ESP8266, and set to false
extern char *lorawan_device_eui;
extern char *lorawan_app_key;
extern char *lorawan_app_eui;
#endif #endif
// Transmission rate // Transmission rate
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment