[英]how can i connect to WIFI network using python 3
i was trying with this code but it does not work我正在尝试使用此代码,但它不起作用
from wireless import Wireless
wire = Wireless()
wire.connect(ssid = "netowrk name" , password = "password")
"To connect an interface to a wireless medium you have to set a proper machine context. “要将接口连接到无线介质,您必须设置适当的机器上下文。
Then, use the connector mechanism to attach the interface:然后,使用连接器机制附加接口:
(machine-0) connector Connect sysbus.radio wireless" That´s from the module documentation, maybe you missed that code Here is the full doc: https://renode.readthedocs.io/en/latest.networking/wireless.html (machine-0) connector Connect sysbus.radio wireless” 来自模块文档,也许你错过了那段代码这是完整的文档: https://renode.readthedocs.io/en/latest.networking/wireless.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.