MQTT Nodemcu Gateway Compile Error
-
Good Morning,
I have just tried compiling the nodemcu MQTT gateway, and I receive a compile error when I verify the sketch. This happens on two PC's i have access to.
Board options I have tried are:
Board - NodeMCU 1.0 (esp-12E module)
Upload speed - 115200 also tried with 9600
flash size - Tried all 3 options
IwIP variant - Tried all 4 optionsI'm not really sure what I am looking at. Is there anything I can try?
The error is:
Arduino: 1.8.7 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (3M SPIFFS), v1.4 Higher Bandwidth, Disabled, None, Only Sketch, 9600" Build options changed, rebuilding all In file included from F:\arduino-1.8.7\portable\sketchbook\libraries\MySensors/MySensors.h:420:0, from F:\arduino-1.8.7\portable\sketchbook\MQTT_Gateway\MQTT_Gateway.ino:114: F:\arduino-1.8.7\portable\sketchbook\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 F:\arduino-1.8.7\portable\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0, from F:\arduino-1.8.7\portable\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256, from sketch\MQTT_Gateway.ino.cpp:1: F:\arduino-1.8.7\portable\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 NodeMCU 1.0 (ESP-12E Module). This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
-
Did you try this?
-
@electrik I did not. Thank you for pointing me in that direction!
3 out of 3
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Ghost Child
Troubleshooting • 17 days ago • FcNanoLed 13 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 12 days ago • bocalexandru 11 days ago -
Getting system time from the controller
Troubleshooting • 27 Feb 2025, 01:39 • dpcons 29 days ago -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58 -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20