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. Controllers
  3. ESP8266 as a gateway and controller?

ESP8266 as a gateway and controller?

Scheduled Pinned Locked Moved Controllers
7 Posts 4 Posters 3.8k Views 3 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.
  • olivierO Offline
    olivierO Offline
    olivier
    wrote on last edited by olivier
    #1

    Hi there I am new to this forum and I just discovered MySenors and what seems to be amazing endless possibilities very easily accessible!

    I apologize if there is already the answer to my question in the forum, I looked but did not find any topics on my particular questions. If I missed it please point me in the right direction.
    Here is what I am trying to do:

    • offline (no connection to the internet)
    • I would like to use a esp8266 as a gateway to talk to arduino node with nrf24l01 (both the arduino nodes and the esp8266 gateway would have nrf24l01 attached)
    • I would like to be able to connect to the esp8266 in softap mode using my smart phone as GUI (using a browser or a specific app).

    So my understanding is that the controller would be hosted on the esp8266. Is that even possible? Or could the controller be on the smartphone and use the esp8266 wifi as a bridge only?

    I guess it is easy with a rPi but I am trying to find a solution with a ESP8266 because of the cost difference.
    Many thanks in advance for your answers!

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      Could https://forum.mysensors.org/topic/2766/an-esp8266-nextion-scene-controller be what you are looking for? In that case, the amazing @scalz is your new pal :)

      1 Reply Last reply
      0
      • olivierO Offline
        olivierO Offline
        olivier
        wrote on last edited by
        #3

        Thanks for the link! In this example is the controller hosted on the ESP12E? which controller is used?

        1 Reply Last reply
        0
        • scalzS Offline
          scalzS Offline
          scalz
          Hardware Contributor
          wrote on last edited by
          #4

          @olivier
          hello.
          Sorry, no controller hosted. in fact it was more something like "scene" or actions etc..And for this purpose I think I will use multiple cheap tablet.
          That said, your point 3) is something I have started for fun, but I have no release date..and I'm using a rpi controller. so it's not hurry for me, but I thought that could be interesting feature. but generally if you have no controller.
          if you have router etc..you can setup your external acces from internet etc...
          I'm not sure if esp8266 is great choice for a controller, or with less features and security..

          1 Reply Last reply
          0
          • olivierO Offline
            olivierO Offline
            olivier
            wrote on last edited by
            #5

            Thank you for your answer. It looks like I cannot really host a controller on a ESP8266...
            So would it be possible to use my sensors library without a controller?
            For example would any of these feature work without a controller?

            • sending data between a node and a gateway (both ways)
            • have the gateway give a node an ID
            • ota firmware update (with mysbootloader)

            I could then develop a firmware on the ESP8266 to have it host a website in softap mode so that a smartphone could see the data.

            1 Reply Last reply
            0
            • scalzS Offline
              scalzS Offline
              scalz
              Hardware Contributor
              wrote on last edited by scalz
              #6

              @olivier
              yes that's what i said. you can set id static in sketch for instance. or for a gw allowing id that would need more work and study.
              but what i have started is something like that. id static, captive portal for esp with spiffs storing settings, no website stored on esp, for performance, I have preferred esp8266 websocket server (faster), or mqtt (could be doable). And a mobile app (apk, i have no iphone) with cordova ionic (angular js etc...).
              That's lot of work to do, for basic features if you compare to a true controller. But I agree that could be fun :)

              1 Reply Last reply
              1
              • M Offline
                M Offline
                mtrivelli
                wrote on last edited by
                #7

                Hi. I made what you are looking for. The basic idea is that every node has is own uniqueID, then, when a node ask to de Wateway for a node number, it is taked from a table.
                0_1529845512347_d0d03c02-9ce9-4d27-a76d-67bd41afcbed-imagen.png
                Of course, I meade some modification to library to do that.

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


                15

                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