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. Can not compile MySensors on esp8266

Can not compile MySensors on esp8266

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 2 Posters 74 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.
  • TheoLT Offline
    TheoLT Offline
    TheoL
    Contest Winner
    wrote on last edited by TheoL
    #1

    I wanted to dust off an old MySensors project that is running on an esp8266, but when I try uploading the Clear EEPROM sketch I get the following error:

    In file included from Arduino/libraries/MySensors/MySensors.h:441,
                     from /private/var/folders/pm/z613mrwd6rx83wg51dx6jkfr0000gn/T/.arduinoIDE-unsaved2024724-45646-98sze5.cjzrw/ClearEepromConfig/ClearEepromConfig.ino:29:
    Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'bool can_yield()':
    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
    Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'void esp_yield_within_cont()':
    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
    Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'void loop_task(ETSEvent*)':
    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         int
    
    exit status 1
    
    Compilation error: exit status 1
    
    
    

    As far as I can tell I'm running the latest MySensors version and the latest ESP board version. I'm running on Arduino 1.8.12 though, but that shouldn't matter?

    Help much appreciated.

    TheoLT 1 Reply Last reply
    0
    • TheoLT TheoL

      I wanted to dust off an old MySensors project that is running on an esp8266, but when I try uploading the Clear EEPROM sketch I get the following error:

      In file included from Arduino/libraries/MySensors/MySensors.h:441,
                       from /private/var/folders/pm/z613mrwd6rx83wg51dx6jkfr0000gn/T/.arduinoIDE-unsaved2024724-45646-98sze5.cjzrw/ClearEepromConfig/ClearEepromConfig.ino:29:
      Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'bool can_yield()':
      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
      Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'void esp_yield_within_cont()':
      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
      Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'void loop_task(ETSEvent*)':
      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         int
      
      exit status 1
      
      Compilation error: exit status 1
      
      
      

      As far as I can tell I'm running the latest MySensors version and the latest ESP board version. I'm running on Arduino 1.8.12 though, but that shouldn't matter?

      Help much appreciated.

      TheoLT Offline
      TheoLT Offline
      TheoL
      Contest Winner
      wrote on last edited by
      #2

      @TheoL said in Can not compile MySensors on esp8266:

      cont_can_yield' was not declared

      Since the search function is broken it was hard to find it on mysensors forum. But google search helped https://forum.mysensors.org/topic/12066/no-lan-connection-esp8266-gateway/16?_=1724514129827

      TheoLT 1 Reply Last reply
      0
      • TheoLT TheoL

        @TheoL said in Can not compile MySensors on esp8266:

        cont_can_yield' was not declared

        Since the search function is broken it was hard to find it on mysensors forum. But google search helped https://forum.mysensors.org/topic/12066/no-lan-connection-esp8266-gateway/16?_=1724514129827

        TheoLT Offline
        TheoLT Offline
        TheoL
        Contest Winner
        wrote on last edited by TheoL
        #3

        @TheoL Although I'm curious what the latest supported version for an EsP8266 is. As some of the other libraries I use complain about the 2.6.2 version

        mfalkviddM 1 Reply Last reply
        0
        • TheoLT TheoL

          @TheoL Although I'm curious what the latest supported version for an EsP8266 is. As some of the other libraries I use complain about the 2.6.2 version

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @TheoL the latest supported version is ESP8266 2.6.2

          Reference: https://github.com/mysensors/MySensors/releases/tag/2.3.2

          TheoLT 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @TheoL the latest supported version is ESP8266 2.6.2

            Reference: https://github.com/mysensors/MySensors/releases/tag/2.3.2

            TheoLT Offline
            TheoLT Offline
            TheoL
            Contest Winner
            wrote on last edited by
            #5

            @mfalkvidd I know xd. But it would be nice - if possible - if a newer version is supported. I'll post a project soon why I would like it.

            mfalkviddM 1 Reply Last reply
            0
            • TheoLT TheoL

              @mfalkvidd I know xd. But it would be nice - if possible - if a newer version is supported. I'll post a project soon why I would like it.

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              @TheoL there are two pull requests adding support for newer versions.

              One is guaranteed to break again.

              One should not break in the future, but will instead break all existing sketches.

              I’m sure a third option would be welcome if you write the code and submit.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              17

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              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