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 options

    I'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.

  • @electrik I did not. Thank you for pointing me in that direction!

Log in to reply

Suggested Topics

  • 10
  • 20
  • 21
  • 3
  • 1
  • 17
  • 6
  • 7