Hosting an LAN on the ESP32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
AwesomeCronk
Posts: 12
Joined: Fri Oct 11, 2019 1:24 am

Hosting an LAN on the ESP32

Post by AwesomeCronk » Fri Oct 18, 2019 2:27 am

Using Adafruit HUZZAH32 with Thonny IDE and MicroPython stable version(as of 10-1-19).

I have seen Arduino tutorials for hosting a LAN with ESP8266, and have used an 8266 with its own LAN before. What I want to do is host a small LAN on an ESP32 using MicroPython. It would need to handle at most 2 or 3 connections at once, with no internet connectivity needed.

User avatar
jimmo
Posts: 1465
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Hosting an LAN on the ESP32

Post by jimmo » Fri Oct 18, 2019 3:03 am

https://docs.micropython.org/en/latest/ ... networking

See the second section of that first example:

Code: Select all

ap = network.WLAN(network.AP_IF) # create access-point interface
ap.config(essid='ESP-AP') # set the ESSID of the access point
ap.active(True)         # activate the interface

AwesomeCronk
Posts: 12
Joined: Fri Oct 11, 2019 1:24 am

Re: Hosting an LAN on the ESP32

Post by AwesomeCronk » Thu Nov 21, 2019 2:49 am

Thank you Jimmo!

Post Reply