Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 1.63 KB

beat.md

File metadata and controls

72 lines (45 loc) · 1.63 KB

H4P Flyer

H4P_Heartbeat

Shortname beat

Adds "uptime" to the webUI, showing how loing MCu has been powered up


Contents


Usage

H4P_Heartbeat BuddyHolly;

This plugin is a "singleton" - there may be only one single instance of it in the app. It may be instantiated as any name the user chooses.

Dependencies

H4P_EmitTick H4P_WiFi]

Commands Added

N/A

Service Commands

stop has no effect

start has no effect

Callback functions

N/A


API

// constructors
H4P_Heartbeat();
H4P_Heartbeat(size_t period); // ms at which LED_BUILTIN will be pulsed to show "online" NB ONLY ON MCU with LED_BUILTIN defined

static string secsToTime(uint32_t secs; // returns human readable D HH:MM:SS of arbitray seconds value
static string upTime(); // returns human readable D HH:MM:SS of time since boot

Example code


(c) 2021 Phil Bowles [email protected]