logo elektroda
logo elektroda
X
logo elektroda

[Solved] Fixed IP configuration for the ESP8266 with LEDs

marcosx 972 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17996085
    marcosx
    Level 12  
    I have working code on an Arduino server ESP8266
    controlling two leds.
    I wanted it to run with a fixed IP.
    If I add a fixed IP, the rest stops working,
    how to make it work with fixed IP address.
    kind regards

    Code: C#
    Log in, to see the code
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 17996124
    Slawek K.
    Level 35  
    Uncomment these lines :
    Code: C / C++
    Log in, to see the code
    .
    If it doesn't work, you need to clear the flash where the esp holds the wifi settings, e.g. by uploading a hex file called blank.hex of the correct size for your ESP (you can find the file and description on the internet) and then re-upload this code.

    Best regards
  • ADVERTISEMENT
  • #3 17996177
    marcosx
    Level 12  
    Prints an error after uncommenting these lines,
    does not compile.
    I don't really know how it should be typed.
  • ADVERTISEMENT
  • Helpful post
    #4 17996225
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • Helpful post
    #5 17996235
    Slawek K.
    Level 35  
    I assumed this was obvious, however I guess I need to be more precise in future ;)

    Greetings
  • #6 17997402
    marcosx
    Level 12  
    Thanks for your help, it works.
ADVERTISEMENT