-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.cpp
26 lines (23 loc) · 1.75 KB
/
globals.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ********************************************************************************************** */
/* */
/* Soft Tracker Project ESP32-C3 ::::::::: ::: */
/* globals.cpp :+: :+: :+: :+: */
/* +:+ +:+ +:+ +:+ */
/* By: Roman Alexandrov <[email protected]> +#++:++#: +#++:++#++: */
/* +#+ +#+ +#+ +#+ */
/* Created: 2023/10/31 14:49:16 #+# #+# #+# #+# */
/* Updated: 2023/11/12 11:40:41 ### ### ### ### */
/* */
/* */
/* Global variables and objects initialization */
/* */
/* ********************************************************************************************** */
#include "globals.h"
WiFiMulti wifiMulti;
WiFiClientSecure client;
UniversalTelegramBot bot(BOTtoken, client);
AsyncWebServer server(80);
RTC_DATA_ATTR unsigned short g_last_wifi;
RTC_DATA_ATTR unsigned short g_offline_wakeups;
RTC_DATA_ATTR bool g_reboot;
unsigned int g_for_this_long = SLEEP_DURATION; // setting Deep Sleep default length