summaryrefslogtreecommitdiff
path: root/portal.h
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2015-12-25 13:38:31 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2015-12-25 13:38:31 +0100
commit76edd6c448c55c4f9bcf37509ec372149c966993 (patch)
treec4eed3c1ecb40987cbe2b77df47b2e6e23c71494 /portal.h
downloadweather-snowman-76edd6c448c55c4f9bcf37509ec372149c966993.tar.gz
weather-snowman-76edd6c448c55c4f9bcf37509ec372149c966993.zip
first commit
Diffstat (limited to 'portal.h')
-rw-r--r--portal.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/portal.h b/portal.h
new file mode 100644
index 0000000..1c5cb6e
--- /dev/null
+++ b/portal.h
@@ -0,0 +1,24 @@
+#include <ESP8266WiFi.h>
+#include <ESP8266WebServer.h>
+
+#include "dnsserver.h"
+#include "util.h"
+
+#ifndef __PORTAL_H__
+#define __PORTAL_H__
+
+void portalSetup(String ssid);
+void portalLoop();
+boolean isConnected();
+void startWebServer();
+void setWeatherIcon(String id);
+int getAPIOverride(int pinId);
+boolean apiNeedLedUpdate();
+void apiUpdatedLeds();
+
+void scanSSIDs();
+void enterAPMode();
+boolean enterClientMode(const char* ssid, const char *passphrase);
+
+#endif
+