HTTP Server with WiFi in AP mode
Is the following configuration possible?
- Pycom device 1 - HTTP server with WiFi in AP mode, listening on port for data from device 2
- Pycom device 2 - HTTP client with WiFi in STA mode (connected to device 1 AP), sending data to device 1
wlan.ifconfig(id=1, config=('192.168.4.10', '255.255.255.0', '192.168.4.1', '192.168.4.1'))
i've tried to read IP address of HTTP Server and that was the problem, it's keep returning me '0.0.0.0'. IP address was set properly to '192.168.4.10' but function returns '0.0.0.0'.
print('Network config:', wlan.ifconfig()) Network config: ('0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0')
Thank you for your help.
Yes, i do this: in our product, device 1 is a wipy, and device 2 is a lopy. That run fine.
Yes, should be no problem.