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. General Discussion
  3. Why don't you write mysensors library for ESP8266 similar to the nRF one ?

Why don't you write mysensors library for ESP8266 similar to the nRF one ?

Scheduled Pinned Locked Moved General Discussion
23 Posts 11 Posters 8.4k Views 10 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #13

    Use the ESP Gateway sketch.
    Remove the NRF-radio define. Present your sensors and start sending data like in any other example.

    T 1 Reply Last reply
    0
    • jopebeJ Offline
      jopebeJ Offline
      jopebe
      wrote on last edited by
      #14

      Thanks for the short instruction.
      But Im afraid it is too short for me. Nothing else to change in the sketch? Do I realy need a ssid and a password? Im just a beginner and found no further information.
      I`m sorry:

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #15

        Yes, you need SSID/Password to connect to your local WLAN.

        1 Reply Last reply
        0
        • hekH hek

          Use the ESP Gateway sketch.
          Remove the NRF-radio define. Present your sensors and start sending data like in any other example.

          T Offline
          T Offline
          Toyman
          wrote on last edited by Toyman
          #16

          @hek

          Can you elaborate on this a bit more? I have a "standard" mysensors setup with various nrf24-based nodes and a serial gw.
          How can I add an esp8266 node to this setup? I understand that I need to use the sketch and present the sensors as usual.
          But how the existing serial gw is going to "hear" the ESP node?
          Or I need an Ethernet GW to be able to add esp node?

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #17

            How to add another (esp) gateway depends on the controller you're using. It will not join your current serial gateway.

            T 1 Reply Last reply
            0
            • hekH hek

              How to add another (esp) gateway depends on the controller you're using. It will not join your current serial gateway.

              T Offline
              T Offline
              Toyman
              wrote on last edited by
              #18

              @hek Domoticz

              mfalkviddM 1 Reply Last reply
              0
              • T Toyman

                @hek Domoticz

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

                @Toyman you add the new gateway just like you added your first. In Setup->Hardware. Just select ethernet or mqtt (depending on which variant you decide to run on your esp) instead of USB.

                1 Reply Last reply
                2
                • T Offline
                  T Offline
                  Toyman
                  wrote on last edited by
                  #20

                  Got it, thx. Just to clarify: if I want eg 5 x esp8266 nodes, do I need to add them as 5 gateways, or I add one as a a gateway and other 4 connect to it?

                  korttomaK 1 Reply Last reply
                  1
                  • T Toyman

                    Got it, thx. Just to clarify: if I want eg 5 x esp8266 nodes, do I need to add them as 5 gateways, or I add one as a a gateway and other 4 connect to it?

                    korttomaK Offline
                    korttomaK Offline
                    korttoma
                    Hero Member
                    wrote on last edited by
                    #21

                    @Toyman

                    Yes, you add them as 5 gateways.

                    • Tomas
                    1 Reply Last reply
                    1
                    • antlombA Offline
                      antlombA Offline
                      antlomb
                      wrote on last edited by
                      #22

                      @korttoma said:

                      as 5 gateways.

                      Hello everybody, sorry to step in and to resume an hold thread, but I was reading it and I'm not sure if the initial question was answered, so I will try to rephrase that adding my contribution.

                      Rf nodes communicate between them using a mesh network and using the best route between them to send messages. Now, I suppose the question was: can I create a node using Wifi transport and not RF ? Of course using ESP8266 and not Arduino+RF.
                      Ok, it's clear the ESP can be used as a gateway, and it's also clear we can add sensors to that gateway. But I imagine this is not the solution. Gateways rely on the Access Point they connect to (SSID and PW). If the AP is momentary not available, sensors will go offline. And Wifi connection to AP usually drops, so that's not a rulable solutions to implement nodes.

                      I'm evaluating a similar solution: creating a mess network of sensors using ESP8266. I've looked around the web, and found that a few works are going on on mesh network using the ESP, but none are a definite solution. Expressif has published a a Mesh SDK, (https://espressif.com/sites/default/files/documentation/30a-esp8266_mesh_user_guide_en.pdf), but it doesn't seem to address completely the problem, or by the way could not find sample installations. Another library (https://github.com/Coopdis/easyMesh) has been developed, but development seems now stopped, and the main problem is that each ESP in the mesh publish his different SSID, while a single SSID for all the mesh would be desirable.

                      All that said, I would like to understand if you're going to investigate using the ESP8266 as a node (not a gateway). That would probably require using a low-level network communication between ESP, but I'm not a network expert, so can't really say.

                      It would be really interesting. It would allow to create a complete mesh network of sensors/actuators using only ESP

                      Thanks for attention.

                      Antonio

                      T 1 Reply Last reply
                      0
                      • antlombA antlomb

                        @korttoma said:

                        as 5 gateways.

                        Hello everybody, sorry to step in and to resume an hold thread, but I was reading it and I'm not sure if the initial question was answered, so I will try to rephrase that adding my contribution.

                        Rf nodes communicate between them using a mesh network and using the best route between them to send messages. Now, I suppose the question was: can I create a node using Wifi transport and not RF ? Of course using ESP8266 and not Arduino+RF.
                        Ok, it's clear the ESP can be used as a gateway, and it's also clear we can add sensors to that gateway. But I imagine this is not the solution. Gateways rely on the Access Point they connect to (SSID and PW). If the AP is momentary not available, sensors will go offline. And Wifi connection to AP usually drops, so that's not a rulable solutions to implement nodes.

                        I'm evaluating a similar solution: creating a mess network of sensors using ESP8266. I've looked around the web, and found that a few works are going on on mesh network using the ESP, but none are a definite solution. Expressif has published a a Mesh SDK, (https://espressif.com/sites/default/files/documentation/30a-esp8266_mesh_user_guide_en.pdf), but it doesn't seem to address completely the problem, or by the way could not find sample installations. Another library (https://github.com/Coopdis/easyMesh) has been developed, but development seems now stopped, and the main problem is that each ESP in the mesh publish his different SSID, while a single SSID for all the mesh would be desirable.

                        All that said, I would like to understand if you're going to investigate using the ESP8266 as a node (not a gateway). That would probably require using a low-level network communication between ESP, but I'm not a network expert, so can't really say.

                        It would be really interesting. It would allow to create a complete mesh network of sensors/actuators using only ESP

                        Thanks for attention.

                        Antonio

                        T Offline
                        T Offline
                        Toyman
                        wrote on last edited by
                        #23

                        @antlomb
                        My personal opinion: when inititial euforia about ESP8266 has ended, people started to realize that the chip is actually not that reliable for solid tasks like home automation.
                        Besides, it has huge problems with deep sleep and even if they are fixed, the module reboots on every wake-up consuming a lot on start up

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


                        20

                        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