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
from flask import request, make_response | |
from functools import wraps | |
class TokenAuth(object): | |
def __init__(self): | |
self.authenticate_callback = None | |
self.auth_error_callback = None | |
def default_authenticate(token): |
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
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Starting up."); |