Wifi
Smart HomeThe house’s Wi-Fi: its address, its name and the networks it remembers.
How you reach it
Section titled “How you reach it”The Wifi class is reached through this attribute of home.
home.wifi
Section titled “home.wifi”Always there.
All the attributes of home are in its table.
Methods
Section titled “Methods”is_connected()
Section titled “is_connected()”True when the house is on Wi-Fi with an address.
is_connected() -> boolUsed in examples: Smart house
The house’s address on the Wi-Fi, as text such as "192.168.1.20", or None.
ip() -> Optional[str]Used in examples: Smart house
hostname()
Section titled “hostname()”The house’s name on the Wi-Fi network.
hostname() -> strhouse_id()
Section titled “house_id()”The four characters that name this house, the end of its name MoBot-IOT-xxxx.
house_id() -> strUsed in examples: Smart house
networks()
Section titled “networks()”The names of the Wi-Fi networks the house remembers, newest first (never their passwords).
networks() -> List[str]forget(ssid)
Section titled “forget(ssid)”Forgets one remembered Wi-Fi network by name, or all of them when called with no name.
forget(ssid=None)