-
-
Save eydam-prototyping/25d8516ec74ca84f47a6075b36cd4748 to your computer and use it in GitHub Desktop.
main.py v7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import ep_logging | |
import ep_wifi | |
import heater_http | |
wifi = ep_wifi.wifi("./network_config.json", max_time_wait_for_connect=10) | |
wlan, ssid, bssid = wifi.connect() | |
logger = ep_logging.colored_logger(appname="main") | |
logger.notice("WiFi connected") | |
logger_http = ep_logging.colored_logger(appname="http") | |
http_server = heater_http.setup(wlan, logger_http) | |
http_server.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment