|
META TOPICPARENT |
name="WebHome" |
Internet access |
|
 |
|
< < | Since I cannot know the SSID and password of your WiFi network, connect() will only work for my private network. You can however pass your SSID and password as parameters: connect(ssid="YourSSID",password="YourWiFiPasswword")
|
> > | Since I cannot know the SSID and password of your WiFi network, connect() will only work for my private network. You can however pass your SSID and password as parameters: connect(ssid="YourSSID",password="YourWiFiPasswword",hostname="yourHost") |
|
You get the IP address allocate with
getIPAddress(). |
|
> > |
Since we have defined the hostname with:
and this hostname is made known to your DNS server through mDNS, you can also address the ESP32 under its hostname: yourHost.local |
| An FTP server
When collecting data it may be interesting to transfer them for analysis to a PC. For this an FTP server is very helpful and there is one included in the MicroPython binary. Make sure you are connected to the network with wifi_connect and then simply import uftpd. You may stop the server again with uftpd.stop(). |
|
META FILEATTACHMENT |
attachment="wifi_connect.py.txt" attr="" comment="" date="1588842852" name="wifi_connect.py.txt" path="wifi_connect.py.txt" size="2552" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="wifi_connect.png" attr="" comment="" date="1588844762" name="wifi_connect.png" path="wifi_connect.png" size="31594" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="dateString.png" attr="" comment="" date="1591014614" name="dateString.png" path="dateString.png" size="21043" user="UliRaich" version="1" |
|
|
< < |
META FILEATTACHMENT |
attachment="wifi_connect_public.py.txt" attr="" comment="" date="1591035847" name="wifi_connect_public.py.txt" path="wifi_connect_public.py.txt" size="3254" user="UliRaich" version="2" |
|
> > |
META FILEATTACHMENT |
attachment="wifi_connect_public.py.txt" attr="" comment="" date="1591819343" name="wifi_connect_public.py.txt" path="wifi_connect_public.py.txt" size="3552" user="UliRaich" version="3" |
|
|
META FILEATTACHMENT |
attachment="wifi_connect.jpg" attr="" comment="" date="1591258916" name="wifi_connect.jpg" path="wifi_connect.jpg" size="107973" user="UliRaich" version="1" |
|
|
> > |
META FILEATTACHMENT |
attachment="hostname.png" attr="" comment="" date="1591819343" name="hostname.png" path="hostname.png" size="22500" user="UliRaich" version="1" |
|