Skip to content

Instantly share code, notes, and snippets.

@eydam-prototyping
Created February 16, 2021 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eydam-prototyping/25d8516ec74ca84f47a6075b36cd4748 to your computer and use it in GitHub Desktop.
Save eydam-prototyping/25d8516ec74ca84f47a6075b36cd4748 to your computer and use it in GitHub Desktop.
main.py v7
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