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
-
Yes, should be no problem.
-
Yes, i do this: in our product, device 1 is a wipy, and device 2 is a lopy. That run fine.
-
@johan @thibault I've managed to do it finally.
After I've set IP for HTTP serverwlan.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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login