logo elektroda
logo elektroda
X
logo elektroda

How do I add more ESP8266 devices to my WiFi control system?

BusyBoy 330 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21021610
    BusyBoy
    Level 8  
    The situation is as follows : some time ago I made myself a remote control on the esp8266 via Wifi - I read the codes of the buttons on the remote and programmed the esp8266 so that I could switch programmes on the decoder using the infrared transmitter. This was due to the fact that I have a hdmi splitter connected to the decoder and in the bedroom I can't switch channels (remote control through the wall didn't work).

    Following the blow, I decided to ip (local) esp8266 "put outside" (for testing) so I could operate the remote control outside the house. I configured a DDNS service (NO-IP) on the router and generally everything works fine.

    Well, at this point a question arises. Because I would still like to add e.g. 2 esp8266 - one e.g. to read the room temperature and the other e.g. to control 433Mhz 230v switches.

    Locally I would even be able to handle this - give each esp8266 a different local ip - and it would work locally. But what about in the case of "outdoor exposure" ? how to approach this? One esp8266 is to be the server ? this "exposed to the outside" and the other esp8266 are to be the clients ?

    Can I ask for some hints ? help ? on the above topic ?

    Greetings
    Jakub
  • ADVERTISEMENT
  • #2 21021649
    JacekCz
    Level 42  
    And one will not pull ? I do not see problems of numbers, pins, performance

    I suppose the problem to glue the so-called "codes" of ready-made ?

    Because cutting functionality into pieces (and then integrate) is always more difficult than on one

    Implement "mediation" / communication can be done variously, the first thing that pops into my head is MQTT
  • ADVERTISEMENT
  • #3 21021661
    BusyBoy
    Level 8  
    This can of course be done on one ESP - only problem is that there are several ESPs which are in different locations (room, bedroom, etc - that is why there are several ESPs)
    It is about the possibility over the Internet (outside the location) to turn on e.g. the light, read the temperature, lower the blinds.
    On the Router I have only one ESP exposed "outside" and if it was on one ESP it would not be a problem - the problem is that there are several ESPs
  • ADVERTISEMENT
  • #4 21021683
    tos18
    Level 42  
    Forward the ports on the router.
    1 esp from outside on port 80 inside on port 80 access from outside two.je.i.p
    2 esp from outside on port 8080 inside on port 80 access from outside two.je.i.p:8080
    3 esp from outside on port 8081 inside on port 80 access from outside two.je.i.p:8081
  • #5 21021698
    BusyBoy
    Level 8  
    tos18 wrote:
    Redirect the ports on the router.
    1 esp from outside on port 80 inside on port 80 access from outside two.je.i.p
    2 esp from outside on port 8080 inside on port 80 access from outside two.je.i.p:8080
    3 esp from outside on port 8081 inside on port 80 access from outside two.je.i.p:8081


    Of course it can be done like this, only to each ESP there will be a separate http address (i.e. different port) e.g.:

    domain.no-ip
    domain.no-ip:8080
    domain.no-ip:8081

    And it won't all be at one address domain.no-ip - that's how I'd like to do it so that I can control/read temperature from one external address
  • ADVERTISEMENT
  • #7 21021712
    BusyBoy
    Level 8  
    tos18 wrote:
    Well, let's have one ESP as a server (collects data and puts out html) and the rest of us connect to it e.g. over UDP and send it data/receive commands.
    https://robotzero.one/sending-data-esp8266-to-esp8266/


    Hmm well I guess this will be a good solution to my problem :D I need to delve into the topic

Topic summary

The discussion revolves around integrating multiple ESP8266 devices into a WiFi control system for remote operations. The user successfully set up one ESP8266 to control an infrared remote for a decoder but seeks to add two more devices for temperature monitoring and controlling 433MHz switches. The challenge lies in accessing these devices remotely over the internet. Suggestions include port forwarding on the router to assign different external ports to each ESP8266, allowing access via unique URLs. An alternative solution proposed is to designate one ESP8266 as a server that collects data and communicates with the others, facilitating centralized control and data management.
Summary generated by the language model.
ADVERTISEMENT