Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. MQTT Nodemcu Gateway Compile Error

MQTT Nodemcu Gateway Compile Error

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 831 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TMCBackline
    wrote on last edited by
    #1

    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.
    
    1 Reply Last reply
    0
    • electrikE Offline
      electrikE Offline
      electrik
      wrote on last edited by
      #2

      Did you try this?

      https://forum.mysensors.org/search?term=ets_update_cpu_frequency&in=titlesposts&matchWords=all&sortBy=relevance&sortDirection=desc&showAs=posts

      T 1 Reply Last reply
      1
      • electrikE electrik

        Did you try this?

        https://forum.mysensors.org/search?term=ets_update_cpu_frequency&in=titlesposts&matchWords=all&sortBy=relevance&sortDirection=desc&showAs=posts

        T Offline
        T Offline
        TMCBackline
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        15

        Online

        12.0k

        Users

        11.2k

        Topics

        113.4k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular