Configure Lora pins

pull/49/head
Ldo-ioT 2018-10-07 19:49:59 +02:00
rodzic bbcf64bc43
commit 2e00e15b5b
3 zmienionych plików z 10 dodań i 9 usunięć

Wyświetl plik

@ -89,7 +89,7 @@
// 4: ESP32 TTGO pinning (should work for 433 and OLED too).
// 5: ESP32 TTGO EU433 MHz with OLED
// 6: Other, define your own in loraModem.h
#define _PIN_OUT 1
#define _PIN_OUT 4
// Gather statistics on sensor and Wifi status
// 0= No statistics
@ -119,8 +119,8 @@
// Define the name of the accesspoint if the gateway is in accesspoint mode (is
// getting WiFi SSID and password using WiFiManager)
#define AP_NAME "YourName"
#define AP_PASSWD "YourPassword"
#define AP_NAME "NETGEAR"
#define AP_PASSWD "JuRiOZecla"
// This section defines whether we use the gateway as a repeater
// For his, we use another output channle as the channel (default==0) we are
@ -137,7 +137,7 @@
// OLED==0; No OLED display connected
// OLED==1; 0.9 Oled Screen based on SSD1306
// OLED==2; 1"3 Oled screens for Wemos, 128x64 SH1106
#define OLED 2
#define OLED 1
// Define whether we want to manage the gateway over UDP (next to management
@ -191,7 +191,7 @@
// This defines whether or not we would use the gateway as
// as sort of backend system which decodes messages (see sensor.h file)
#define _LOCALSERVER 0 // See server definitions for decodes
#define _LOCALSERVER 1 // See server definitions for decodes
// Gateway Ident definitions
#define _DESCRIPTION "ESP Gateway" // Name of the gateway
@ -262,7 +262,7 @@ struct wpas {
//
wpas wpa[] = {
{ "" , "" }, // Reserved for WiFi Manager
{ "fire", "water" },
{ "NETGEAR", "JuRiOZecla" },
{ "ape", "beer" }
};

Wyświetl plik

@ -132,7 +132,7 @@ using namespace std;
byte currentMode = 0x81;
bool sx1272 = true; // Actually we use sx1276/RFM95
bool sx1272 = false; // Actually we use sx1276/RFM95
uint32_t cp_nb_rx_rcv; // Number of messages received by gateway
uint32_t cp_nb_rx_ok; // Number of messages received OK

Wyświetl plik

@ -626,7 +626,8 @@ int receivePacket()
// This is one of the potential problem areas.
// If possible, USB traffic should be left out of interrupt routines
// rxpk PUSH_DATA received from node is rxpk (*2, par. 3.2)
/* // rxpk PUSH_DATA received from node is rxpk (*2, par. 3.2)
#ifdef _TTNSERVER
if (!sendUdp(ttnServer, _TTNPORT, buff_up, build_index)) {
return(-1); // received a message
@ -639,7 +640,7 @@ int receivePacket()
return(-2); // received a message
}
#endif
*/
#if _LOCALSERVER==1
// Or special case, we do not use a local server to receive
// and decode the server. We use buildPacket() to call decode