ESP8266 to act as a gateway between two PCs to transfer the data
-
I am new to arduino and to ESP module, my task is to make ESP8266 to act as Gateway for the communication between two devices. so when I transfer a data, it need to be transferred through the gateway to the other PC. I installed arduino and installed Mysensors library in it.I am using esp8266 gateway example, while compiling it is showing the error
Arduino: 1.8.7 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 9600" Build options changed, rebuilding all In file included from C:\Users\kishor.babu\Documents\Arduino\libraries\MySensors/MySensors.h:420:0, from C:\Users\kishor.babu\Documents\Arduino\libraries\MySensors\examples\GatewayESP8266\GatewayESP8266.ino:118: C:\Users\kishor.babu\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:57:53: error: declaration of C function 'void ets_update_cpu_frequency(int)' conflicts with extern "C" void ets_update_cpu_frequency(int freqmhz); ^ In file included from C:\Users\kishor.babu\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0, from C:\Users\kishor.babu\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256, from sketch\GatewayESP8266.ino.cpp:1: C:\Users\kishor.babu\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include/ets_sys.h:218:6: error: previous declaration 'void ets_update_cpu_frequency(uint32_t)' here void ets_update_cpu_frequency(uint32_t ticks_per_us); ^ exit status 1 Error compiling for board Generic ESP8266 Module. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
-
Hi @kishor, welcome to the forum!
These threads might be of interest:
https://forum.mysensors.org/post/92175
https://forum.mysensors.org/post/93564
https://forum.mysensors.org/post/93113
https://forum.mysensors.org/post/90990
https://forum.mysensors.org/post/92610
1 out of 2
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
PJON and Minicore not working
Development • 27 days ago • Trand 27 days ago -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33