This file contains hidden or 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 function triggers from their respective submodules: | |
* | |
* const {onCall} = require("firebase-functions/v2/https"); | |
* const {onDocumentWritten} = require("firebase-functions/v2/firestore"); | |
* | |
* See a full list of supported triggers at https://firebase.google.com/docs/functions | |
*/ | |
const { onRequest } = require("firebase-functions/v2/https"); |
This file contains hidden or 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 <Adafruit_SSD1306.h> | |
#include <WiFi.h> | |
#include <esp_now.h> | |
#include <esp_wifi.h> | |
#include <HTTPClient.h> | |
#include <Wire.h> | |
#include <ArduinoJson.h> | |
#include <WiFiClientSecure.h> | |
#define SCREEN_WIDTH 128 // OLED display width, in pixels |
This file contains hidden or 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 "Adafruit_MAX1704X.h" | |
#include <esp_now.h> | |
#include <WiFi.h> | |
#include <esp_wifi.h> | |
//#define DEBUG | |
#define CHANNEL 1 | |
#define uS_TO_S_FACTOR 1000000ULL /* Conversion factor for micro seconds to seconds */ | |
#define TIME_TO_SLEEP 600 /* Time ESP32 will go to sleep (in seconds) */ |