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. Announcements
  3. 💬 Building a WiFi Gateway using ESP8266

💬 Building a WiFi Gateway using ESP8266

Scheduled Pinned Locked Moved Announcements
109 Posts 52 Posters 23.2k Views 51 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #62

    Have you tried other sketches if they work? You may also try to flash a blank .bin file to erase everything on the esp8266

    1 Reply Last reply
    0
    • Richard van der PlasR Offline
      Richard van der PlasR Offline
      Richard van der Plas
      wrote on last edited by
      #63

      seems to work again indeed, had to flash something empty first.

      1 Reply Last reply
      1
      • R Offline
        R Offline
        ricorico94
        wrote on last edited by
        #64

        Hi,
        I built a ESP8266 gateway using a wemos D1 mini and RFM95. I'd like to debug some communications with sensors with being attached to serial port of a computer, so I tried to connect via telnet.
        I can connect as telnet, but I don't see many details.. First, text in telnet is not aligned on the left, and second, it only lists some raw values instead of displaying same kind of verbose debug info like in the serial monitor.
        Is there a way to display same verbose text than in serial monitor ?

        Thanks,
        ricorico94

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ricorico94
          wrote on last edited by
          #65

          Hi,
          I answer to myself as it may help some other beginners like me.

          • there's a way to get the debug info via telnet session to the ESP8266 gateway: look fro MyNetDebug library in this forum.
            https://forum.mysensors.org/topic/7044/debug-messages-over-wi-fi

          • be careful if you reuse sketches from 2.2.0 with 2.3.0 library release : now instead of
            #define MY_ESP8266_SSID "MySSID"
            #define MY_ESP8266_PASSWORD "MyVerySecretPassword"

          you should use:
          #define MY_WIFI_SSID "MySSID"
          #define MY_WIFI_PASSWORD "MyVerySecretPassword"

          br,

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Andre65
            wrote on last edited by
            #66

            I get the following errors when trying to Verify/Compile. I am trying to use the example sketch without any edits. Any ideas on what to do to fix this problem?
            Under additional Board Mangers I have the following.
            https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysensors.org_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json
            I have MySensors version 2.3.0 installed and have trying using previous versions.

            Errors:
            In file included from E:*\MySketchesNew\libraries\MySensors/MySensors.h:420:0,
            from E:*
            \MySketchesNew\GatewayESP8266\GatewayESP8266.ino:118:
            E:***\MySketchesNew\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*\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,
            from C:\Users*
            \AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
            from C:\Users*\AppData\Local\Temp\arduino_build_755180\sketch\GatewayESP8266.ino.cpp:1:
            C:\Users*
            \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 NodeMCU 1.0 (ESP-12E Module).

            Thank you for the assistance.

            mfalkviddM G 2 Replies Last reply
            0
            • A Andre65

              I get the following errors when trying to Verify/Compile. I am trying to use the example sketch without any edits. Any ideas on what to do to fix this problem?
              Under additional Board Mangers I have the following.
              https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysensors.org_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json
              I have MySensors version 2.3.0 installed and have trying using previous versions.

              Errors:
              In file included from E:*\MySketchesNew\libraries\MySensors/MySensors.h:420:0,
              from E:*
              \MySketchesNew\GatewayESP8266\GatewayESP8266.ino:118:
              E:***\MySketchesNew\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*\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,
              from C:\Users*
              \AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
              from C:\Users*\AppData\Local\Temp\arduino_build_755180\sketch\GatewayESP8266.ino.cpp:1:
              C:\Users*
              \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 NodeMCU 1.0 (ESP-12E Module).

              Thank you for the assistance.

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

              Hi @andre65, welcome to the MySensors forum!

              These threads might be of interest:
              https://forum.mysensors.org/topic/9826/esp8266-to-act-as-a-gateway-between-two-pcs-to-transfer-the-data
              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 Reply Last reply
              0
              • Richard van der PlasR Offline
                Richard van der PlasR Offline
                Richard van der Plas
                wrote on last edited by
                #68

                I have some strange issues with my ESP8266 Wifi gateway and NRF24L01 connection.
                All goes well for a day or so or sometimes 3, but than the WiFi communication stops, rebooting my WiFi access point solves the problem.
                It shouldn't be a DHCP issue, because that is handled through the firewall, so it must be something else. Problem is i cannot see what goes wrong, because i don't have a log anywhere on the device?
                What could be the best steps to solve or find the issue ?

                mfalkviddM electrikE 2 Replies Last reply
                0
                • Richard van der PlasR Richard van der Plas

                  I have some strange issues with my ESP8266 Wifi gateway and NRF24L01 connection.
                  All goes well for a day or so or sometimes 3, but than the WiFi communication stops, rebooting my WiFi access point solves the problem.
                  It shouldn't be a DHCP issue, because that is handled through the firewall, so it must be something else. Problem is i cannot see what goes wrong, because i don't have a log anywhere on the device?
                  What could be the best steps to solve or find the issue ?

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

                  @richard-van-der-plas to get a log, activate MY_DEBUG in teh sketch and connect the esp8266 to a computer or a log device like sundberg84's logger.

                  1 Reply Last reply
                  0
                  • Richard van der PlasR Richard van der Plas

                    I have some strange issues with my ESP8266 Wifi gateway and NRF24L01 connection.
                    All goes well for a day or so or sometimes 3, but than the WiFi communication stops, rebooting my WiFi access point solves the problem.
                    It shouldn't be a DHCP issue, because that is handled through the firewall, so it must be something else. Problem is i cannot see what goes wrong, because i don't have a log anywhere on the device?
                    What could be the best steps to solve or find the issue ?

                    electrikE Offline
                    electrikE Offline
                    electrik
                    wrote on last edited by
                    #70

                    @richard-van-der-plas I recognise the problem you describe. Resetting the router seems related, but the effect of the restart is that the ESP loses its Wifi connection, making it crash and restart. Then it works again, so I think it is because it was reset.
                    You could try to program the ESP with an empty bin file to make sure it will be emptied completely, and than reprogram the ESP with your sketch.

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      b0wi
                      wrote on last edited by b0wi
                      #71

                      Hello! I'm so happy with the MySensors community the forum helped me so much to find answers, but I can't figure out the following:
                      I'm building an Wi-Fi Gateway using an ESP8266. That gateway is running now but I want to add the LEDS and inclusion mode button. In the comments of the code I find out that I have to use pin 16 for all the leds?

                      // Flash leds on rx/tx/err
                      // Led pins used if blinking feature is enabled above
                      #define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
                      #define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
                      #define MY_DEFAULT_TX_LED_PIN  16  // the PCB, on board LED
                      

                      Is that correct? And with D? Pin do I have to use?

                      For the inclusion mode button I have to use pin D1:

                      // Digital pin used for inclusion mode button
                      #define MY_INCLUSION_MODE_BUTTON_PIN D1
                      

                      But I can't compile this because I have to use an pin number and not just D1. How can I fix that? And how can I test/debug the button to see of it's in the inclusion mode?

                      Thanks in advance!
                      Robin

                      mfalkviddM 1 Reply Last reply
                      0
                      • B b0wi

                        Hello! I'm so happy with the MySensors community the forum helped me so much to find answers, but I can't figure out the following:
                        I'm building an Wi-Fi Gateway using an ESP8266. That gateway is running now but I want to add the LEDS and inclusion mode button. In the comments of the code I find out that I have to use pin 16 for all the leds?

                        // Flash leds on rx/tx/err
                        // Led pins used if blinking feature is enabled above
                        #define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
                        #define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
                        #define MY_DEFAULT_TX_LED_PIN  16  // the PCB, on board LED
                        

                        Is that correct? And with D? Pin do I have to use?

                        For the inclusion mode button I have to use pin D1:

                        // Digital pin used for inclusion mode button
                        #define MY_INCLUSION_MODE_BUTTON_PIN D1
                        

                        But I can't compile this because I have to use an pin number and not just D1. How can I fix that? And how can I test/debug the button to see of it's in the inclusion mode?

                        Thanks in advance!
                        Robin

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

                        Hi @b0wi, welcome to the forum!

                        Some boards (for example Wemos/Lolin) define the Dn pins. If your board does not use the Dn naming convention, or if you like the gpio numbers better, just use the (gpio) number.

                        Depending on your board, different pins can be used for different things. Some pins control boot behavior for example. See https://forum.mysensors.org/post/64783 for an earlier discussion on the same subject.

                        B 1 Reply Last reply
                        0
                        • mfalkviddM mfalkvidd

                          Hi @b0wi, welcome to the forum!

                          Some boards (for example Wemos/Lolin) define the Dn pins. If your board does not use the Dn naming convention, or if you like the gpio numbers better, just use the (gpio) number.

                          Depending on your board, different pins can be used for different things. Some pins control boot behavior for example. See https://forum.mysensors.org/post/64783 for an earlier discussion on the same subject.

                          B Offline
                          B Offline
                          b0wi
                          wrote on last edited by
                          #73

                          Thanks @mfalkvidd, I'm using this board: https://nl.aliexpress.com/item/NodeMcu-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266-module/32448461056.html?spm=a2g0s.13010208.99999999.329.1df83c00aOlGkL

                          I've to use different pins for each LED right?

                          // Flash leds on rx/tx/err
                          // Led pins used if blinking feature is enabled above
                          #define MY_DEFAULT_ERR_LED_PIN 16 // Error led pin
                          #define MY_DEFAULT_RX_LED_PIN 16 // Receive led pin
                          #define MY_DEFAULT_TX_LED_PIN 16 // the PCB, on board LED
                          

                          And how can I test my inclusion button?
                          Is there something to see in the log output?

                          mfalkviddM 1 Reply Last reply
                          0
                          • B b0wi

                            Thanks @mfalkvidd, I'm using this board: https://nl.aliexpress.com/item/NodeMcu-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266-module/32448461056.html?spm=a2g0s.13010208.99999999.329.1df83c00aOlGkL

                            I've to use different pins for each LED right?

                            // Flash leds on rx/tx/err
                            // Led pins used if blinking feature is enabled above
                            #define MY_DEFAULT_ERR_LED_PIN 16 // Error led pin
                            #define MY_DEFAULT_RX_LED_PIN 16 // Receive led pin
                            #define MY_DEFAULT_TX_LED_PIN 16 // the PCB, on board LED
                            

                            And how can I test my inclusion button?
                            Is there something to see in the log output?

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

                            Indication leds: the same pin can be used. Pro: only one pin is needed. Con: you won't be able to see the type of indication. An alternaive, if you can't find enough pins, is to only activate one or two.

                            Inclusion: hopefully someone else can assist. I have never used inclusion.

                            B 1 Reply Last reply
                            0
                            • mfalkviddM mfalkvidd

                              Indication leds: the same pin can be used. Pro: only one pin is needed. Con: you won't be able to see the type of indication. An alternaive, if you can't find enough pins, is to only activate one or two.

                              Inclusion: hopefully someone else can assist. I have never used inclusion.

                              B Offline
                              B Offline
                              b0wi
                              wrote on last edited by
                              #75

                              @mfalkvidd said in 💬 Building a WiFi Gateway using ESP8266:

                              Indication leds: the same pin can be used. Pro: only one pin is needed. Con: you won't be able to see the type of indication. An alternaive, if you can't find enough pins, is to only activate one or two.

                              Inclusion: hopefully someone else can assist. I have never used inclusion.

                              It's working now!
                              I'm using the following pins for the leds:

                              // Flash leds on rx/tx/err
                              // Led pins used if blinking feature is enabled above
                              #define MY_DEFAULT_ERR_LED_PIN 0  // [D3 / GPIO 0] Error led pin (Red)
                              #define MY_DEFAULT_RX_LED_PIN 2   // [D4 / GPIO 2] Receive led pin (Green)
                              #define MY_DEFAULT_TX_LED_PIN 16  // [D0 / GPIO 16] Send led pin (Yellow)
                              

                              Pin layout ESP8266

                              The leds where on all the time except when there was some activity, so I had to invent the leds:

                              // Inverses the behavior of leds
                              #define MY_WITH_LEDS_BLINKING_INVERSE
                              

                              For the inclusion button I've used:

                              // Digital pin used for inclusion mode button
                              #define MY_INCLUSION_MODE_BUTTON_PIN 5 // [D1 / GPIO 5] Button pin
                              

                              I needed to use an pull up resistor (10K ohm) for more stability.
                              Pull Up Resistor

                              1 Reply Last reply
                              1
                              • mfalkviddM mfalkvidd

                                @joseyapor On one MySensors network there can only be one MySensors gateway. But on one IP network, there can be many MySensors gateways. Exactly how many depends on geography and chosen transports but at the very least a few hundred. Thousands if you really need and plan accordingly.

                                I Offline
                                I Offline
                                Inso
                                wrote on last edited by
                                #76

                                @mfalkvidd
                                Quotes:
                                "Don't define MY_RADIO_NRF24 and you're good to go. It will still be a gateway, but a gateway with local sensors and no radio."
                                and
                                "On one MySensors network there can only be one MySensors gateway. But on one IP network, there can be many MySensors gateways. Exactly how many depends on geography and chosen transports but at the very least a few hundred. Thousands if you really need and plan accordingly."

                                Let´s say I have multiple ESPs, which should all act like a sensor node. I have a RPi w Domoticz, Mosquitto and MySensors MQTT ethernet gateway.
                                I add the MQTT gateway to Domotics, listening on port 1883 (Mosquitto port). Now I set up a sketch, using

                                #define MY_IP_ADDRESS 192,168,178,151
                                #define MY_CONTROLLER_IP_ADDRESS 192,168,178,200 
                                #define MY_PORT 1883
                                

                                which sets the gateway to client / node mode (as read on the documentation).
                                Setting a node Id is ignored, ID is 0 and can´t be changed, so it is recognized as a gateway at domoticz.
                                If I now set a second node to a different IP address and name, it overwrites the old one (as you say, there can be only one gateway).
                                The question now is: how can I set up another ESP? Do I need another RPi or virtual machine with different IP address to install another gateway?

                                rejoe2R 1 Reply Last reply
                                0
                                • I Inso

                                  @mfalkvidd
                                  Quotes:
                                  "Don't define MY_RADIO_NRF24 and you're good to go. It will still be a gateway, but a gateway with local sensors and no radio."
                                  and
                                  "On one MySensors network there can only be one MySensors gateway. But on one IP network, there can be many MySensors gateways. Exactly how many depends on geography and chosen transports but at the very least a few hundred. Thousands if you really need and plan accordingly."

                                  Let´s say I have multiple ESPs, which should all act like a sensor node. I have a RPi w Domoticz, Mosquitto and MySensors MQTT ethernet gateway.
                                  I add the MQTT gateway to Domotics, listening on port 1883 (Mosquitto port). Now I set up a sketch, using

                                  #define MY_IP_ADDRESS 192,168,178,151
                                  #define MY_CONTROLLER_IP_ADDRESS 192,168,178,200 
                                  #define MY_PORT 1883
                                  

                                  which sets the gateway to client / node mode (as read on the documentation).
                                  Setting a node Id is ignored, ID is 0 and can´t be changed, so it is recognized as a gateway at domoticz.
                                  If I now set a second node to a different IP address and name, it overwrites the old one (as you say, there can be only one gateway).
                                  The question now is: how can I set up another ESP? Do I need another RPi or virtual machine with different IP address to install another gateway?

                                  rejoe2R Offline
                                  rejoe2R Offline
                                  rejoe2
                                  wrote on last edited by
                                  #77

                                  @inso said in 💬 Building a WiFi Gateway using ESP8266:

                                  Setting a node Id is ignored, ID is 0 and can´t be changed, so it is recognized as a gateway at domoticz.

                                  Imo using ESP8266-based devices all as GW's with locally attached switches (or other actively addressed children) conflicts also with other controller types (e.g. FHEM also doesn't like that on more than one GW).
                                  If you want to use that type of hardware, better use a different firmware like ESPEasy or Tasmota. The later seems to be a good fit for any installation using a MQTT-Server. (I personally don't like that kind of setup, wifi shouldn't be used for HA purposes imo).

                                  Just my2ct.

                                  Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                                  I 1 Reply Last reply
                                  0
                                  • rejoe2R rejoe2

                                    @inso said in 💬 Building a WiFi Gateway using ESP8266:

                                    Setting a node Id is ignored, ID is 0 and can´t be changed, so it is recognized as a gateway at domoticz.

                                    Imo using ESP8266-based devices all as GW's with locally attached switches (or other actively addressed children) conflicts also with other controller types (e.g. FHEM also doesn't like that on more than one GW).
                                    If you want to use that type of hardware, better use a different firmware like ESPEasy or Tasmota. The later seems to be a good fit for any installation using a MQTT-Server. (I personally don't like that kind of setup, wifi shouldn't be used for HA purposes imo).

                                    Just my2ct.

                                    I Offline
                                    I Offline
                                    Inso
                                    wrote on last edited by Inso
                                    #78

                                    @rejoe2
                                    If I only would set up 8266´s I´d give it a try - problem is, I´m in love with the ESP 32.
                                    Bluetooth LE, multithreading, a second core only for the wifi stuff so no crashes on high wlan activity and no problems with time-critical events, lots of GPIO, awesome processor power, combined with the lower power consumption makes this the most-used chip here :)
                                    As far as I can see, both solutions you mentioned are not made for the ESP32 :( .
                                    So I´d like to stick to MySensors as I could use lots of the sketches almost 1:1 (can´t be that hard to get more then one MQTT-"Client" running -.-).
                                    Only real other options I see is using MQTT-Clientsoftware from Basecamp or just set up an asynchronous http socket and code / decode the JSON-parameters send from and to Domoticz myself..

                                    1 Reply Last reply
                                    0
                                    • rejoe2R Offline
                                      rejoe2R Offline
                                      rejoe2
                                      wrote on last edited by
                                      #79

                                      Sorry, I'm not familiar with the ESP32; perhaps you have a look around for other more powerful platforms on MySensors, starting here: https://forum.mysensors.org/topic/6961/nrf5-action.

                                      The problem within MySensors afaik is a double one:

                                      • First you have to make sure the GW get's the message. Eg. in FHEM, this is a problem, as one node basically is only identified by it's NodeID. As already described, internally there's a distinction between the GW part and the Sensor (node-) part. And the Sensor part gets unavoidably (at least afaik) the NodeID 0 - so for the controller all the Children are located at the same Node.
                                        As the controller notes just one IO (aka GW) per Node, Messages to the "unified" Node 0 will always be routed to the same GW. If this is different when using MQTT as transport layer and not serial or IP communication? (could be, as more clients can subscribe to a "Node 0"-topic...)

                                      • Second thing then is to make sure to not mess up messages intented for different GW's when doing some "broadcasting" by MQTT. Means: use different ChildID's for all the GW's sensors and actuators.

                                      Best success!

                                      Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                                      I 1 Reply Last reply
                                      0
                                      • A Andre65

                                        I get the following errors when trying to Verify/Compile. I am trying to use the example sketch without any edits. Any ideas on what to do to fix this problem?
                                        Under additional Board Mangers I have the following.
                                        https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysensors.org_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json
                                        I have MySensors version 2.3.0 installed and have trying using previous versions.

                                        Errors:
                                        In file included from E:*\MySketchesNew\libraries\MySensors/MySensors.h:420:0,
                                        from E:*
                                        \MySketchesNew\GatewayESP8266\GatewayESP8266.ino:118:
                                        E:***\MySketchesNew\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*\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,
                                        from C:\Users*
                                        \AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
                                        from C:\Users*\AppData\Local\Temp\arduino_build_755180\sketch\GatewayESP8266.ino.cpp:1:
                                        C:\Users*
                                        \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 NodeMCU 1.0 (ESP-12E Module).

                                        Thank you for the assistance.

                                        G Offline
                                        G Offline
                                        GRDL
                                        wrote on last edited by
                                        #80

                                        @andre65 did you figure this out? I have the same problem! Thanks.

                                        1 Reply Last reply
                                        0
                                        • rejoe2R rejoe2

                                          Sorry, I'm not familiar with the ESP32; perhaps you have a look around for other more powerful platforms on MySensors, starting here: https://forum.mysensors.org/topic/6961/nrf5-action.

                                          The problem within MySensors afaik is a double one:

                                          • First you have to make sure the GW get's the message. Eg. in FHEM, this is a problem, as one node basically is only identified by it's NodeID. As already described, internally there's a distinction between the GW part and the Sensor (node-) part. And the Sensor part gets unavoidably (at least afaik) the NodeID 0 - so for the controller all the Children are located at the same Node.
                                            As the controller notes just one IO (aka GW) per Node, Messages to the "unified" Node 0 will always be routed to the same GW. If this is different when using MQTT as transport layer and not serial or IP communication? (could be, as more clients can subscribe to a "Node 0"-topic...)

                                          • Second thing then is to make sure to not mess up messages intented for different GW's when doing some "broadcasting" by MQTT. Means: use different ChildID's for all the GW's sensors and actuators.

                                          Best success!

                                          I Offline
                                          I Offline
                                          Inso
                                          wrote on last edited by
                                          #81

                                          @rejoe2
                                          You´re absolutely right.
                                          After 4+ hours debugging the MQTT gateway + ~10h trying to get MySensors MQTT on ethernet working properly, I tried a different way:
                                          installed NoteRed on the RPi and an asynchronous MQTT client on the ESP32, and within ~1 hour I had a fast and stable way to send messages from and to my nodes. Adding JSON parser on the ESP, and I can perfectly communicate with dummy Domoticz devices.
                                          Also, except of you and one very helpful guy within a private chat, noone preplied to MQTT-questions and ESP-stuff. Seems working with ESPs is reluctantly seen here on the forum.?
                                          So I assume a different way then using MySensors for everything except (battery-powered) Arduinos is the best I can do, to also have no problems in the future..

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


                                          6

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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