1 (edited by Gillou41 2021-11-23 21:44:17)

Topic: Address IP

Bonjour à tous
Peux ton fixer l'adresse IP avec Remotexp qui me fais la rechercher à chaque fois sur mon phone?
J'utilise un ESP8266  pour commander des relais , chargé Par IDE Arduino. A 60Ans, c'est juste pour du DYE de Noob... smile

Hello everyone ( Google Trade My Friend )
Can you fix the IP address with Remotexp which makes me look it up every time on my phone?

2

Re: Address IP

To use a static IP for your board...

Setup your configuration for:

Ethernet (Wired and Wireless)
ESP8266 Board of your choice
WiFi on chip
IDE of your choice

Configure your WiFi network's SSID (REMOTEXY_WIFI_SSID) and Password (REMOTEXY_WIFI_PASSWORD) in the code.

Add this into your void setup(), adjusting XXX for the IP ranges of your network:

  IPAddress ip(xxx, xxx, xxx, xxx);  // Desired static IP of your board
  IPAddress gateway(xxx, xxx, xxx, xxx);
  IPAddress subnet(255, 255, 255, 0);
  IPAddress dns(xxx, xxx, xxx, xxx);
  WiFi.config(ip,dns,gateway,subnet);
  WiFi.begin(REMOTEXY_WIFI_SSID, REMOTEXY_WIFI_PASSWORD);

  RemoteXY_Init ();
"And voila, which is French for.......'and then I found out.'" - Ready Player One

3

Re: Address IP

Bienvenue

Tu peux aussi utiliser mdns

https://tttapa.github.io/ESP8266/Chap08%20-%20mDNS.html

4

Re: Address IP

merci à vous pour ces réponses.