logo elektroda
logo elektroda
X
logo elektroda

[Solved] ESP-01S - RELAY mini project - control from another ESP - network operation

Adrian1978 867 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19270981
    Adrian1978
    Level 11  
    Hello, could one of the colleagues more familiar with the intricacies of Wi-Fi networks suggest if it would be at all possible to configure several ESP-01S, working as a micro web server with support for relay operation, so that they would connect to the AP quickly and reliably, without the involvement of any router, internet etc. with another ESP01S or similar module, (e.g. NodeMCU with ESP8266-12) on board, working this time as just an AP ? so that they "always find each other" / connect to the network of this main AP made with NodeMCU when they are on ?
    If I'm spouting any bullshit in this above question then sorry in advance, I'm just trying to get into the subject of WiFi networks and how they work, protocols etc.

    So far, I've managed to make some microservers which, when started up, report to the router and ask for an IP, it gives them the IP, and in fact when I go to a page generated by these little guys, I can control the relay quite reliably and acceptably fast, the flash recovery works, and generally it would be super-hyper but.... it all only works on an IP allocated from the home router, trying to impose my own IP in the toddler code results in it either not working at all or having a different IP allocated from the home router anyway.

    I would like to control these toddlers "in the open" , without a router, without the net, but from another, "central" device which can create a network in advance, i.e. from the aforementioned NodeMCU working e.g. as an AP (this would probably be the easiest way?).

    Question for the experts: IS IT POSSIBLE?

    Thank you in advance for your answers, for a piece of code in the Arduino IDE environment, I would be very grateful, if someone tormented such a topic.

    p.s. I will try again to search the electrode in this topic but maybe it will be faster to ask because many people know the topic?
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • Helpful post
    #2 19271129
    khoam
    Level 42  
    Adrian1978 wrote:
    Hello, could any of my colleagues more familiar with the intricacies of Wi-Fi networks suggest whether it would be at all possible to configure a couple of ESP-01S, working as a micro web server with support for relay operation, to connect to the AP quickly and reliably, without the involvement of any router
    .
    As much as possible. This is what the ESP-NOW protocol is for - connectionless i.e. ESPs can send data to each other without the intermediation of any AP.
    Link
  • ADVERTISEMENT
  • #3 19271911
    Adrian1978
    Level 11  
    Re-we-la-cja , that's what I meant , I'll try it right away , thank you very much for sending this article !
  • #4 19271913
    Adrian1978
    Level 11  
    Re-we-la-cja , that's what I meant , I'll try it right away , thank you very much for sending this article !

    Added after 55 [seconds]:

    Re-we-la-cja , that was the point , I will try it right away , thank you very much for forwarding this article !
ADVERTISEMENT