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.3k 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.
  • sghazaghS Offline
    sghazaghS Offline
    sghazagh
    wrote on last edited by
    #32

    Guys, just an update for my issue regarding Radio and my circuit.
    The Radio was faulty, I received the new one, swapped it and all worked fine.

    I just posted that here if someone want to use my last post image as a reference for connecting the Radio.
    The wiring all are correct.

    Thanks

    1 Reply Last reply
    2
    • jakesJ Offline
      jakesJ Offline
      jakes
      wrote on last edited by
      #33

      Hi Hek,

      Thanks for this guide... I have added an additional 433 RF receiver to my ESP8266 gateway. How can I send the data received from 433 RF to the my Home Assistant controller?

      1 Reply Last reply
      0
      • denisvdbD Offline
        denisvdbD Offline
        denisvdb
        wrote on last edited by
        #34

        Hello, i have build a wifi gateway and use it in jeedom.
        My gateway wifi as connection problem.
        In jeedom, in the log of my sensors node I have almost every 2 days the message: diconnected from network gateway.
        If I restart the node the communication is re-established.
        Is this a problem with nrf24l01?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          derrij
          wrote on last edited by
          #35

          why esp8266 gateway shows only debug info?
          when i comment //#define MY_DEBUG
          where is no any serial output.

          mfalkviddM 1 Reply Last reply
          0
          • D derrij

            why esp8266 gateway shows only debug info?
            when i comment //#define MY_DEBUG
            where is no any serial output.

            mfalkviddM Online
            mfalkviddM Online
            mfalkvidd
            Mod
            wrote on last edited by
            #36

            @derrij because it is a wifi gateway?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AndreD
              wrote on last edited by
              #37

              If put in client mode
              #define MY_CONTROLLER_IP_ADDRESS 192, 168, 2, 9
              I get an error. How to win.

              **
              Arduino: 1.8.2 (Windows 7), ΠŸΠ»Π°Ρ‚Π°:"Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

              "C:\Users\DedHP\AppData\Local\Temp\arduino_build_364162\sketch\GatewayESP8266.ino.cpp.o"
              In file included from C:\Users\DedHP\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39:0,

                           from C:\Users\DedHP\AppData\Local\Temp\arduino_modified_sketch_313960\GatewayESP8266.ino:132:
              

              C:\Users\DedHP\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h: In instantiation of 'size_t WiFiClient::write(T&, size_t) [with T = char*; size_t = unsigned int]':

              C:\Documents\Arduino\ams\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:207:58: required from here

              C:\Users\DedHP\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:123:36: error: request for member 'available' in 'source', which is of non-class type 'char*'

               size_t left = source.available();
              
                                              ^
              

              C:\Users\DedHP\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:127:5: error: request for member 'read' in 'source', which is of non-class type 'char*'

               source.read(buffer.get(), will_send);
              
               ^
              

              Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΡƒ ESP8266WiFi вСрсии 1.0 ΠΈΠ· ΠΏΠ°ΠΏΠΊΠΈ: C:\Users\DedHP\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi
              Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΡƒ MySensors вСрсии 2.1.1 ΠΈΠ· ΠΏΠ°ΠΏΠΊΠΈ: C:\Documents\Arduino\ams\Arduino\libraries\MySensors
              Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΡƒ EEPROM вСрсии 1.0 ΠΈΠ· ΠΏΠ°ΠΏΠΊΠΈ: C:\Users\DedHP\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\EEPROM
              Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΡƒ SPI вСрсии 1.0 ΠΈΠ· ΠΏΠ°ΠΏΠΊΠΈ: C:\Users\DedHP\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SPI
              exit status 1
              Ошибка компиляции для ΠΏΠ»Π°Ρ‚Ρ‹ Generic ESP8266 Module.*

              1 Reply Last reply
              0
              • Jonathan CaesJ Offline
                Jonathan CaesJ Offline
                Jonathan Caes
                wrote on last edited by
                #38

                Hi,
                Is it possible to use this setup without the nrf24l01 atached, so that i can use the esp8266 just as a sensor (not as a gateway)?

                mfalkviddM 1 Reply Last reply
                0
                • Jonathan CaesJ Jonathan Caes

                  Hi,
                  Is it possible to use this setup without the nrf24l01 atached, so that i can use the esp8266 just as a sensor (not as a gateway)?

                  mfalkviddM Online
                  mfalkviddM Online
                  mfalkvidd
                  Mod
                  wrote on last edited by mfalkvidd
                  #39

                  @Jonathan-Caes yes. 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.

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    joseyapor
                    wrote on last edited by
                    #40

                    Hi how many Gateways Can i have on a network?

                    mfalkviddM 1 Reply Last reply
                    0
                    • J joseyapor

                      Hi how many Gateways Can i have on a network?

                      mfalkviddM Online
                      mfalkviddM Online
                      mfalkvidd
                      Mod
                      wrote on last edited by mfalkvidd
                      #41

                      @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 1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        alexalex
                        wrote on last edited by
                        #42

                        Help! After connecting to the WIFI, I'm getting disconnected. Here's a log : https://goo.gl/fyr7ku

                        Any help in figuring this out would be appreaciated!

                        mfalkviddM 1 Reply Last reply
                        0
                        • A alexalex

                          Help! After connecting to the WIFI, I'm getting disconnected. Here's a log : https://goo.gl/fyr7ku

                          Any help in figuring this out would be appreaciated!

                          mfalkviddM Online
                          mfalkviddM Online
                          mfalkvidd
                          Mod
                          wrote on last edited by mfalkvidd
                          #43

                          Welcome to the MySensors community @alexalex
                          The log is missing the first lines, but it looks like the microcontroller is unable to communicate with the radio. Which radio are you using?

                          See https://ci.mysensors.org/job/Verifiers/job/MySensors/branch/development/Doxygen_HTML/group__MyTransportgrp.html#details for more details about the log messages and https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help/ for the most common problems and how to fix them.

                          1 Reply Last reply
                          0
                          • Bogus ExceptionB Offline
                            Bogus ExceptionB Offline
                            Bogus Exception
                            wrote on last edited by
                            #44

                            Is there a complete wiring table, diagram, or schematic? I have a working MyController/MySensors network on nRF24s, but I am adding WiFi with a ESP-201 module (white one with pins broken out for 2.54 pitch; see: http://smarpl.com/sites/default/files/images/ESP8266-ESP-201-pin-reference-v01.png)... TIA!

                            "If you drop it and it breaks, it was good." ~ Mr. Lehr, my Electronics Vo-Tech teacher, on testing vacuum tubes...
                            -Arduinos (UNO, Nano, Pro-Mini, Mega, ...)
                            -ATTiny, ATMega, STM32
                            -Geek Channel: https://www.youtube.com/TheSalesEngineer

                            mfalkviddM 1 Reply Last reply
                            0
                            • Bogus ExceptionB Bogus Exception

                              Is there a complete wiring table, diagram, or schematic? I have a working MyController/MySensors network on nRF24s, but I am adding WiFi with a ESP-201 module (white one with pins broken out for 2.54 pitch; see: http://smarpl.com/sites/default/files/images/ESP8266-ESP-201-pin-reference-v01.png)... TIA!

                              mfalkviddM Online
                              mfalkviddM Online
                              mfalkvidd
                              Mod
                              wrote on last edited by mfalkvidd
                              #45

                              @Bogus-Exception did you see the instructions linked in the first post in this thread? You probably want the part that says "connect the radio".

                              1 Reply Last reply
                              0
                              • pihomeP Offline
                                pihomeP Offline
                                pihome
                                wrote on last edited by
                                #46

                                if i reboot my wifi router mysensors wifi gateway wouldn't try to connect again, is this only with me or its common issue with wifi gateway?

                                PiHome - Smart Heating Control

                                mfalkviddM 1 Reply Last reply
                                0
                                • pihomeP pihome

                                  if i reboot my wifi router mysensors wifi gateway wouldn't try to connect again, is this only with me or its common issue with wifi gateway?

                                  mfalkviddM Online
                                  mfalkviddM Online
                                  mfalkvidd
                                  Mod
                                  wrote on last edited by
                                  #47

                                  @pihome said in πŸ’¬ Building a WiFi Gateway using ESP8266:

                                  if i reboot my wifi router mysensors wifi gateway wouldn't try to connect again, is this only with me or its common issue with wifi gateway?

                                  This question was transferred to a new thread by @pihome. Please don't answer here, to avoid double work and confusion.

                                  1 Reply Last reply
                                  0
                                  • folkestorpF Offline
                                    folkestorpF Offline
                                    folkestorp
                                    wrote on last edited by
                                    #48

                                    Reporting batterypercent to Domoticz not working.
                                    I have built a ESP8266 Gateway and I connecting a BME280 sensor. It report everything right with a serial gateway but with the new wifi gateway it not reciving the battery percent. I look in the serial monitor at the gateway and where is no battery data.

                                    1 Reply Last reply
                                    0
                                    • O Offline
                                      O Offline
                                      Oleg Greengo
                                      wrote on last edited by
                                      #49

                                      Colleagues, tell me.
                                      can I make it so that hosts register on the gateway only if I press a button on the gateway?

                                      Perhaps there is an example?

                                      1 Reply Last reply
                                      0
                                      • T Offline
                                        T Offline
                                        toozinger
                                        wrote on last edited by
                                        #50

                                        Hello,
                                        I'm receiving the following errors:
                                        warning: espcomm_sync failed
                                        error: espcomm_open failed
                                        error: espcomm_upload_mem failed
                                        error: espcomm_upload_mem failed

                                        I have attempted to fix this problem through:
                                        *Making sure I"m using the "NodeMCU" as my board in the Arduino IDE
                                        *Trying different upload rates
                                        *Pressing and holding the flash button while and/or right before upload

                                        Hardware:
                                        PC, windows 10
                                        NodeMCU from eBay link above.

                                        Any help? It appears others have had this problem as well, but I haven't (yet) been able to fix my issues through their threads.

                                        Thanks!

                                        Toozinger

                                        1 Reply Last reply
                                        0
                                        • blackYB Offline
                                          blackYB Offline
                                          blackY
                                          wrote on last edited by
                                          #51

                                          ...and how to connect Arduino & MySensors & ESP8266-01 (like this one: https://www.aliexpress.com/item/2015-New-version-1PCS-ESP8266-serial-WIFI-model-ESP-01-Authenticity-Guaranteed-Internet-of-things/32574207918.html?spm=a2g0s.9042311.0.0.ytiQMF ) with ESP 01 Serial Adapter - like this one (https://www.aliexpress.com/item/ESP8266-Serial-WiFi-Wireless-ESP-01-Adapter-Module-3-3V-5V-Compatible-For-Arduino/32740695540.html?spm=a2g0s.9042311.0.0.lSVdmZ), when i should use Tx and Rx signals only?

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


                                          19

                                          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