From a1cd3656d45ad6b0d6f476f5c3cc7a677dfcecc4 Mon Sep 17 00:00:00 2001 From: Matt Way Date: Wed, 3 Jan 2024 10:18:49 +1100 Subject: [PATCH] Add arduino-timer library --- platformio.ini | 2 ++ src/main.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/platformio.ini b/platformio.ini index 33a2421..14ab23c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -24,4 +24,6 @@ lib_deps = plapointe6/EspMQTTClient@^1.13.3 + contrem/arduino-timer@^3.0.1 + RFPowerView=https://git.mattway.com.au/matt/RFPowerView.git diff --git a/src/main.cpp b/src/main.cpp index 2ccd1dc..84b977d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include "secrets.h" @@ -24,6 +25,8 @@ EspMQTTClient client( 1883 ); +auto timer = Timer<10, millis, uint16_t>(); + void processPacket(const Packet*); bool sendOpenPacket(uint16_t destination);