💬 Building a WiFi Gateway using ESP8266
-
Hello! I'm trying to run ESP8266 gateway with nrf24l01 radio module, but when I run it I don't see any logs, I've enebled debugging mode, but still no logs (and it doesn't run gateway either). I've checked connection between this board end esp32 - they communicate well. Don't know what to do else.
-
@Serj-Sam you mention "connection between this board and esp32". What board are you referring to, and what type of connection? Wifi?
@mfalkvidd I have esp8266 NodeMCU v3. I've connected it to esp32 devkit via nrf24l01 using simple test code where I sending and reading constant string. It's just to exclude problems with nrf24l01 and esp8266.
@Yveaux I don't have any logs through serial port related to the MySensors. When I remove MySensors lib (and the code related to it) I'm able to print messages in setup() and loop() section, but with MySensors lib it stuckted somewhere without logs and do not execute code in setup() and loop() sections. -
@mfalkvidd I have esp8266 NodeMCU v3. I've connected it to esp32 devkit via nrf24l01 using simple test code where I sending and reading constant string. It's just to exclude problems with nrf24l01 and esp8266.
@Yveaux I don't have any logs through serial port related to the MySensors. When I remove MySensors lib (and the code related to it) I'm able to print messages in setup() and loop() section, but with MySensors lib it stuckted somewhere without logs and do not execute code in setup() and loop() sections. -
@Serj-Sam you could very well have run into the incompatibility of mysensors with the latest esp arduino core 3.x (see eg https://github.com/mysensors/MySensors/issues/1496)
Easiest solution is to downgrade the esp arduino core to 2.x -
@Yveaux said in 💬 Building a WiFi Gateway using ESP8266:
downgrade the esp arduino core
Thank you @Yveaux ! It works now! Have you heard anything about long-term solution? Looks like this will be overwritten once I update MySensors lib.
-
Hi,
I would like to add sendSketchInfo to my gateway.
I addedconst char* sketch_name = "GatewayESP8266OTA_v3";
const char* rev = "1.01";at the beginning of the sketch and
sendSketchInfo(sketch_name, rev);
in the presentation part.
but this doesn't seem to work. Am I doing anything wrong? Any suggestion on how to do it right? Many thanks in advance!
-
@Fat-Fly i also want the answer of this question
-
Worth noting - use MY_RFM69_NEW_DRIVER define... (2.3.2+)
#ifdef ESP8266 // For RFM69 #define MY_RADIO_RFM69 #define MY_RFM69_NEW_DRIVER #define MY_RFM69_FREQUENCY RFM69_868MHZ // Set your frequency here #define MY_IS_RFM69HW // Omit if your RFM is not "H" #define MY_RFM69_IRQ_PIN D1 #define MY_RFM69_IRQ_NUM digitalPinToInterrupt(MY_RFM69_IRQ_PIN) #define MY_RFM69_CS_PIN D8 // NSS. Use MY_RFM69_SPI_CS for older versions (before 2.2.0) #endif -
Hi,
I'm having trouble compiling the ESP gate code. Can you help me?In file included from c:\Users\Arkadiusz_Dziura\Documents\Arduino\libraries\MySensors/MySensors.h:441,
from C:\Users\Arkadiusz_Dziura\Documents\Arduino_OLD\Domoticz_BRAMA_ESP\Domoticz_BRAMA_ESP.ino:61:
c:\Users\Arkadiusz_Dziura\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'bool can_yield()':
c:\Users\Arkadiusz_Dziura\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:95:9: error: 'cont_can_yield' was not declared in this scope; did you mean 'can_yield'?
95 | return cont_can_yield(g_pcont);
| ^~~~~~~~~~~~~~
| can_yield
c:\Users\Arkadiusz_Dziura\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'void esp_yield_within_cont()':
c:\Users\Arkadiusz_Dziura\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:101:2: error: 'cont_yield' was not declared in this scope; did you mean 'can_yield'?
101 | cont_yield(g_pcont);
| ^~~~~~~~~~
| can_yield
c:\Users\Arkadiusz_Dziura\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'void loop_task(ETSEvent*)':
c:\Users\Arkadiusz_Dziura\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:199:26: error: invalid operands of types 'void' and 'int' to binary 'operator!='
199 | if (cont_check(g_pcont) != 0) {
| ~~~~~~~~~~~~~~~~~~~ ^~ ~
| | |
| void intexit status 1
Compilation error: exit status 1
-
-
I join the question, I have exactly the same problem: .../MyMainESP8266.cpp:95:9: error: 'cont_can_yield' was not declared in this scope; did you mean 'can_yield'?
i found a reference #include "cont.h" in MyMainESP8266.cpp but i can't find 'cont.h' -
elektryk ....I do not really understand.
-
I mean the ESP framework version, selected by the board version
https://arduino.esp8266.com/Arduino/versions/2.0.0/doc/installing.html#:~:text=Open Boards Manager from Tools,from a drop-down box.