Hi arduino folks again!
I can't launch my WeMos d1 mini RFM95W gateaway. There are some problems. I added my GW to thethingsnetwork console, but I get GUI when my GW was not connected to WiFi. If my GW is connected to WiFi then I have this in my serial monitor:
Packet RSSI: -157 RSSI: -105 SNR: 0 Length: 0 21:24:16.400 -> rxpk update: {"rxpk":[{"tmst":2309970632,"chan":0,"rfch":0,"freq":868.099975,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":0,"rssi":-157,"size":0,"data":""}]} 21:24:16.435 -> Packet RSSI: -157 RSSI: -106 SNR: 0 Length: 0 21:24:16.435 -> rxpk update: {"rxpk":[{"tmst":2343263632,"chan":0,"rfch":0,"freq":868.099975,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":0,"rssi":-157,"size":0,"data":""}]} 21:24:16.476 -> Packet RSSI: -157 RSSI: -105 SNR: 0 Length: 0 21:24:16.476 -> rxpk update: {"rxpk":[{"tmst":2358912632,"chan":0,"rfch":0,"freq":868.099975,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":0,"rssi":-157,"size":0,"data":""}]} 21:24:16.476 -> Packet RSSI: -157 RSSI: -104 SNR: 0 Length: 0 21:24:16.476 -> rxpk update: {"rxpk":[{"tmst":2379120632,"chan":0,"rfch":0,"freq":868.099975,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":0,"rssi":-157,"size":0,"data":""}]} 21:24:16.503 -> Received packet of size 4 From 52.169.76.203, port 1700, Contents: 0x01:46:29:01: 21:24:16.503 -> Packet RSSI: -157 RSSI: -104 SNR: 0 Length: 0
and over and over.
OLED Display info:
Time: time is runing
RSSI: -157 and not changed.
SNR:0 and not changed.
LEN:0 and not changed.
First I want to try lastest version:GitHub - things4u/ESP-1ch-Gateway-v5.0--OLD: Version 5 of Single Channel LoRa Gateway But when I tried to compile I have an error massege:
"C:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0/tools/sdk/include" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0/tools/sdk/lwip/include" "-IC:\\Users\\henin\\AppData\\Local\\Temp\\arduino_build_498635/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10807 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\cores\\esp8266" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\variants\\d1_mini" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries\\SPI" "-IC:\\Users\\henin\\Documents\\Arduino\\libraries\\Time" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries\\DNSServer\\src" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries\\ESP8266WiFi\\src" "-IC:\\Users\\henin\\Documents\\Arduino\\libraries\\ArduinoJson\\src" "-IC:\\Users\\henin\\Documents\\Arduino\\libraries\\gBase64" "-IC:\\Users\\henin\\Documents\\Arduino\\libraries\\ESP8266_Oled_Driver_for_SSD1306_display" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries\\Wire" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries\\ESP8266mDNS" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries\\ESP8266WebServer\\src" "-IC:\\Users\\henin\\Documents\\Arduino\\libraries\\Streaming" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries\\ESP8266httpUpdate\\src" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries\\ESP8266HTTPClient\\src" "-IC:\\Users\\henin\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries\\ArduinoOTA" "C:\\Users\\henin\\AppData\\Local\\Temp\\arduino_build_498635\\sketch\\ESP-sc-gway_JH.ino.cpp" -o "C:\\Users\\henin\\AppData\\Local\\Temp\\arduino_build_498635\\sketch\\ESP-sc-gway_JH.ino.cpp.o"
In file included from C:\Users\henin\Desktop\ESP-1ch-Gateway-v5.0-master\ESP-sc-gway_JH\ESP-sc-gway_JH.ino:63:0:
C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/dns.h:104:54: error: 'ip_addr_t' has not been declared
typedef void (*dns_found_callback)(const char *name, ip_addr_t *ipaddr, void *callback_arg);
^
C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/dns.h:108:43: error: 'ip_addr_t' has not been declared
void dns_setserver(u8_t numdns, ip_addr_t *dnsserver);
^
C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/dns.h:109:1: error: 'ip_addr_t' does not name a type
ip_addr_t dns_getserver(u8_t numdns);
^
C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/dns.h:110:56: error: 'ip_addr_t' has not been declared
err_t dns_gethostbyname(const char *hostname, ip_addr_t *addr,
^
Using library SPI at version 1.0 in folder: C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SPI
Using library Time at version 1.5 in folder: C:\Users\henin\Documents\Arduino\libraries\Time
Using library DNSServer at version 1.1.0 in folder: C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\DNSServer
Using library ESP8266WiFi at version 1.0 in folder: C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi
Using library ArduinoJson at version 5.13.1 in folder: C:\Users\henin\Documents\Arduino\libraries\ArduinoJson
Using library gBase64 at version 1.0.0 in folder: C:\Users\henin\Documents\Arduino\libraries\gBase64
Using library ESP8266_Oled_Driver_for_SSD1306_display at version 3.2.7 in folder: C:\Users\henin\Documents\Arduino\libraries\ESP8266_Oled_Driver_for_SSD1306_display
Using library Wire at version 1.0 in folder: C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\Wire
Using library ESP8266mDNS in folder: C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266mDNS (legacy)
Using library ESP8266WebServer at version 1.0 in folder: C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer
Using library Streaming in folder: C:\Users\henin\Documents\Arduino\libraries\Streaming (legacy)
Using library ESP8266httpUpdate at version 1.1 in folder: C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266httpUpdate
Using library ESP8266HTTPClient at version 1.1 in folder: C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266HTTPClient
Using library ArduinoOTA at version 1.0 in folder: C:\Users\henin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ArduinoOTA
exit status 1
Error compiling for board WeMos D1 R2 & mini.
PROBLEM SOLVED!!! I got that code from other user and all works perfecty!
Something wrong with GitHub - things4u/ESP-1ch-Gateway-v5.0--OLD: Version 5 of Single Channel LoRa Gateway