-
Notifications
You must be signed in to change notification settings - Fork 0
/
loraFiles.h
49 lines (41 loc) · 1.83 KB
/
loraFiles.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// 1-channel LoRa Gateway for ESP8266
// Copyright (c) 2016, 2017 Maarten Westenberg version for ESP8266
// Version 4.0.8
// Date: 2017-08-05
//
// based on work done by Thomas Telkamp for Raspberry PI 1ch gateway
// and many others.
//
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the MIT License
// which accompanies this distribution, and is available at
// https://opensource.org/licenses/mit-license.php
//
// Author: Maarten Westenberg (mw12554@hotmail.com)
//
// This file contains a number of compile-time settings that can be set on (=1) or off (=0)
// The disadvantage of compile time is minor compared to the memory gain of not having
// too much code compiled and loaded on your ESP8266.
//
// ----------------------------------------------------------------------------------------
// Definition of the configuration record that is read at startup and written
// when settings are changed.
struct espGwayConfig {
uint16_t fcnt; // =0 as init value XXX Could be 32 bit in size
uint16_t boots; // Number of restarts made by the gateway after reset
uint16_t resets; // Number of statistics resets
uint16_t views; // Number of sendWebPage() calls
uint16_t wifis; // Number of WiFi Setups
uint16_t reents; // Number of re-entrant interrupt handler calls
uint16_t ntpErr; // Number of UTP requests that failed
uint16_t ntps;
uint8_t ch; // index to freqs array, freqs[ifreq]=868100000 default
uint8_t sf; // range from SF7 to SF12
uint8_t debug; // range 0 to 4
bool cad; // is CAD enabled?
bool hop; // Is HOP enabled (Note: SHould be disabled)
bool node; // Is gateway node enabled
bool refresh; // Is WWW browser refresh enabled
String ssid; // SSID of the last connected WiFi Network
String pass; // Password
} gwayConfig;