Update HomeSpan.h
This commit is contained in:
parent
b6c019d1a8
commit
91ab626d6c
|
|
@ -71,6 +71,7 @@ struct SpanRange;
|
|||
struct SpanBuf;
|
||||
struct SpanButton;
|
||||
struct SpanUserCommand;
|
||||
struct SpanWebLog;
|
||||
|
||||
extern Span homeSpan;
|
||||
|
||||
|
|
@ -94,14 +95,6 @@ struct SpanBuf{ // temporary storage buffer for us
|
|||
|
||||
///////////////////////////////
|
||||
|
||||
struct SpanWebLog{ // optional web status/log data
|
||||
int maxEntries=-1; // max number of log entries; -1 = do not create log or status; 0 = create status but no log; 1..N = create status and log with N entries
|
||||
int nEntries=0; // current number of log entries
|
||||
char **entry; // pointers to log entries of arbitrary size
|
||||
};
|
||||
|
||||
///////////////////////////////
|
||||
|
||||
struct Span{
|
||||
|
||||
const char *displayName; // display name for this device - broadcast as part of Bonjour MDNS
|
||||
|
|
@ -124,7 +117,7 @@ struct Span{
|
|||
const char *timeZone=NULL; // optional time-zone specification
|
||||
const char *timeServer=NULL; // optional time server to use for acquiring clock time
|
||||
char bootTime[33]="Unknown"; // boot time
|
||||
SpanWebLog webLog; // optional web status/log
|
||||
SpanWebLog *webLog=NULL; // optional web status/log
|
||||
|
||||
boolean connected=false; // WiFi connection status
|
||||
unsigned long waitTime=60000; // time to wait (in milliseconds) between WiFi connection attempts
|
||||
|
|
@ -686,6 +679,20 @@ struct SpanUserCommand {
|
|||
SpanUserCommand(char c, const char *s, void (*f)(const char *, void *), void *arg);
|
||||
};
|
||||
|
||||
///////////////////////////////
|
||||
|
||||
struct SpanWebLog{ // optional web status/log data
|
||||
int maxEntries; // max number of log entries; -1 = do not create log or status; 0 = create status but no log; 1..N = create status and log with N entries
|
||||
int nEntries=0; // current number of log entries
|
||||
|
||||
struct log_t { // log entry type
|
||||
uint32_t upTime; // number of seconds since booting
|
||||
struct tm clockTime; // clock time
|
||||
char *message; // pointers to log entries of arbitrary size
|
||||
} *log=NULL; // array of log entries
|
||||
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
|
||||
#include "Span.h"
|
||||
|
|
|
|||
Loading…
Reference in New Issue