homie.utils
— Homie Utils¶
This module provides helper functions for networking.
-
homie.utils.
enable_ap
()¶ Start the Wifi Access Point with the default configuration.
SSID = Microhomie-<MAC> Secret = microhomiE
-
homie.utils.
disable_ap
()¶ Function to disable the device Wifi Access Point. For the ESP8266 Microhomie firmwares this function will be excecuted on boot.
-
homie.utils.
get_local_ip
()¶ Return the device IP address, if possible.
-
homie.utils.
get_local_mac
()¶ Return the device MAC address, if possible.
-
homie.utils.
get_wifi_credentials
(wifi)¶ This function tries to find and a know wifi defined in
settings.py
and returns the credentials.
-
homie.utils.
payload_is_valid
()¶ Helper function to validate payload for node properties.
This function does only test if the payload match the datatype and not the format the payload has to be in, for now.
Returns
True
orFalse
.