Added existing fastclock implementation.

Added DjDebug, DjConfig.
This commit is contained in:
2019-06-06 16:40:38 +02:00
parent 362e0760db
commit 93e82c535e
13 changed files with 1087 additions and 147 deletions

25
src/DjFastclockScanner.h Normal file
View File

@@ -0,0 +1,25 @@
/* DjFastclockScanner -- collect fastclock server names
*/
#ifndef _DjFastclockScannerIncluded
#define _DjFastclockScannerIncluded true
#include <Arduino.h>
#include "DjDebug.h"
#define MAX_CLOCKS 10
class FastclockScanner {
public:
FastclockScanner(Debug& _debug):debug(_debug) {};
void addClock(String clockName);
void addClock(const char * clockName);
String *getKnownClocks() { return knownClocks; }
int getNumberOfKnownClocks() { return numberOfKnownClocks; }
private:
Debug& debug;
static String knownClocks[];
static int numberOfKnownClocks;
};
#endif