Translate

luni, 31 iulie 2017

Programming Esp12 module Lolin wifi

Is many ways to acces via web in esp12 wifi module ... but i find a easy mode to comunicate with esp12 module.
When esp12 is powered ... in wifi stations appear your wifi module . For example for  my module i set name to "Jersinio" with few lines codes in Arduino ide:


  WiFi.mode(WIFI_AP);
  WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
  WiFi.softAP("Jersinio");


Connect with your wifi ( Jersinio)...


After you can acces your index page with a name domain , for example "Jersinio.it" (not need to insert the 192.168.4.1, but functioning )

For rispond a your name domain you need to set these code lines:

  dnsServer.start(DNS_PORT, "jersinio.it", apIP);

......................................................................................................................................

Only few lines and now you can acces your wifi module in an modern mode with a name domain.

I create a html page index.htm wich can download files to esp12


You can download the surce code for arduino ide from here :

Also you can upload any file you want in esp module...
You can see a list of files uploaded in esp12 with command:

http://jersinio.it/list




For more informations ... leave a comment bellow!





Niciun comentariu:

Trimiteți un comentariu