📅  最后修改于: 2022-03-11 14:45:34.745000             🧑  作者: Mango
#Here it is
from wifi import Cell, Scheme
Cell.all('wlan0')
cell = Cell.all('wlan0')[0]
scheme = Scheme.for_cell('wlan0', 'home', cell, passkey)
scheme.save()
scheme.activate()
scheme = Scheme.find('wlan0', 'home')
scheme.activate()