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 Namespace Reference

Functions

String createUuid ()
 Create a uuid string. More...
 
String convertToHex (byte *data, int size)
 Convert a byte array into a hex string. More...
 
volatile bool getDuckInterrupt ()
 Get the Duck Interrupt state. More...
 
void setDuckInterrupt (bool interrupt)
 Toggle the duck Interrupt. More...
 
Timer getTimer ()
 

Variables

volatile bool enableDuckInterrupt
 
Timer duckTimer
 

Function Documentation

◆ convertToHex()

String duckutils::convertToHex ( byte *  data,
int  size 
)

Convert a byte array into a hex string.

Parameters
dataa byte array to convert
sizethe size of the array
Returns
A string representating the by array in hexadecimal.

◆ createUuid()

String duckutils::createUuid ( )

Create a uuid string.

Returns
A string representing a unique id.

◆ getDuckInterrupt()

volatile bool duckutils::getDuckInterrupt ( )

Get the Duck Interrupt state.

Returns
true if interrupt is enabled, false otherwise.

◆ getTimer()

Timer duckutils::getTimer ( )

◆ setDuckInterrupt()

void duckutils::setDuckInterrupt ( bool  interrupt)

Toggle the duck Interrupt.

Parameters
interrupttrue to enable interrupt, false otherwise.

Variable Documentation

◆ duckTimer

Timer duckutils::duckTimer
extern

◆ enableDuckInterrupt

volatile bool duckutils::enableDuckInterrupt
extern