Firmware for an ad-hoc mesh network of Internet-of-Things devices based on LoRa (Long Range radio) that can be deployed quickly and cheaply.
DuckUtils.h
Go to the documentation of this file.
1 
10 #ifndef DUCKUTILS_H_
11 #define DUCKUTILS_H_
12 
13 #include "cdpcfg.h"
14 #include "timer.h"
15 #include <Arduino.h>
16 #include <WString.h>
17 namespace duckutils {
18 
19 extern volatile bool enableDuckInterrupt;
20 extern Timer<> duckTimer;
21 
27 String createUuid();
28 
36 String convertToHex(byte* data, int size);
37 
43 volatile bool getDuckInterrupt();
44 
50 void setDuckInterrupt(bool interrupt);
51 
52 Timer<> getTimer();
53 
54 } // namespace duckutils
55 #endif
duckutils::getDuckInterrupt
volatile bool getDuckInterrupt()
Get the Duck Interrupt state.
duckutils
Definition: DuckUtils.h:17
duckutils::enableDuckInterrupt
volatile bool enableDuckInterrupt
duckutils::createUuid
String createUuid()
Create a uuid string.
duckutils::setDuckInterrupt
void setDuckInterrupt(bool interrupt)
Toggle the duck Interrupt.
duckutils::convertToHex
String convertToHex(byte *data, int size)
Convert a byte array into a hex string.
duckutils::duckTimer
Timer duckTimer
cdpcfg.h
CDP central compile-time configuration file.
duckutils::getTimer
Timer getTimer()