ESP32 as access point not routing traffic
Posted: Tue Jan 08, 2019 10:30 am
Hi There,
this is my first post. I tried search but I am either not looking in the right corner or I am the first one running in that "issue"!?
I've got an heltec board with an ESP32 on it. I flashed the latest micropython build on it and got a REPL prompt. Great.
I set up the ESP32 as access point using the following code:
This is working fine. I can connect to the access point using my smart phone, computer whatever. Assume I have a Raspberry Pi added to the network running a simple webserver and my computer:
From my computer, I can ping the esp32. But I cannot ping the the Raspberry Pi. Neither can I make a HTTP GET request from computer -> Raspberry Pi. But I can make a HTTP GET request from esp32 -> Raspberry Pi.
I assume that the access point mode does not implement a routing? If not, is there a way to accomplish this?
Thanks
this is my first post. I tried search but I am either not looking in the right corner or I am the first one running in that "issue"!?
I've got an heltec board with an ESP32 on it. I flashed the latest micropython build on it and got a REPL prompt. Great.
I set up the ESP32 as access point using the following code:
Code: Select all
import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid='my-ssid', authmode=network.AUTH_WPA_WPA2_PSK, password='my-password')
ap.ifconfig(('192.168.84.1', '255.255.255.0', '192.168.84.1', '192.168.84.1')) # ip, netmask, gateway, dns
Code: Select all
esp32 (as access point) = 192.168.84.1
raspberry = 192.168.84.2
computer = 192.168.84.3
I assume that the access point mode does not implement a routing? If not, is there a way to accomplish this?
Thanks