2136 views|0 replies

11

Posts

0

Resources
The OP
 

About MicroPython ESP8266 WIFI settings problem - thanks! [Copy link]

 This post was last edited by yanruiqi5678 on 2020-10-8 16:59

Dear experts, please tell me: When micropython esp8266 WIFI is set to AP mode, 1. How can I get the IP address and other information of the device connected to the AP (ESP8266)? 2. When it is in AP mode, how can I set ESP8266 to work in server mode? I didn't find the answer in the document! Thank you!

3. The following is my settings, the test is normal

import network

from machine import Pin

led=Pin(2,Pin.OUT,value=0)

mynet=network.WLAN(network.AP_IF) #network.STA_IF

mynet.ifconfig(('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8'))

mynet.config(essid= 'mytest',channel=11,password='12345678')

mynet.active(True)

 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list