logo elektroda
logo elektroda
X
logo elektroda

How do I start the server on the ESP8266 automatically after booting?

VanKiller003 408 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18161668
    VanKiller003
    Level 15  
    Hello,
    I am starting my ESP adventure using the relay board shown below. It is configured as an AP with address 192.168.4.1, and I can connect to it with my phone via wifi. I am simultaneously creating an android app to control the relay connected to the ESP8266 via TCP.

    Communication via the serial monitor of the Arduino application works without a problem. However, I would like the server ( read AT+CIPSERVER=1, 8080 command ) to be started automatically when the device is connected to a power source. Logic dictates that one would have to code an automatic start in flash memory, e.g. with the AT+CIPSERVER_DEF command - but this does not exist. I would appreciate your help in finding a solution to this problem.
    Regards


    How do I start the server on the ESP8266 automatically after booting? .
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 18161760
    khoam
    Level 42  
    VanKiller003 wrote:
    Logic dictates that an automatic start should be encoded in flash memory, e.g. with the AT+CIPSERVER_DEF command - but this does not exist. I would be grateful for help in finding a solution to this problem.
    .
    I'm afraid that the TCP server settings will not be able to be stored in flash using AT commands.
    Maybe instead of using AT firmware it is better to write your own program using Arduino HAL, which will run the server automatically? ;)
  • ADVERTISEMENT
  • #3 18161963
    VanKiller003
    Level 15  
    Thanks for the reply.
    I'd love to, I can't find any material about this Arduino HAL though. Could you give me some links?
ADVERTISEMENT