abkfenris / gage-particle

MIT License
0 stars 0 forks source link

Data Logger #6

Open abkfenris opened 5 years ago

abkfenris commented 5 years ago
class DataLogger {
  public:
    Virtual void setup() = 0;
    Virtual void loop() = 0;
    Virtual void add_data(char[] key, float value()) = 0;
    Virtual void write_meassage(char[] message) = 0;
    Virtual void persist() = 0;
}

class DataLoggerManager: public DataLogger {
  Public:
    Virtual void add_logger(DataLogger *logger) = 0;
}
abkfenris commented 5 years ago
class SDLogger: public DataLogger {
  public:
    SDLogger(char[] log_folder, char[] data_folder) {}
}
abkfenris commented 5 years ago
class SerialLogger: public DataLogger {
  public: 
    SerialLogger() {}
}
abkfenris commented 5 years ago
class UbiLogger: public DataLogger {
  public:
    UbiLogger() {}
}
abkfenris commented 5 years ago

BLE UART

https://docs.particle.io/tutorials/device-os/bluetooth-le/#uart-peripheral

https://rickkas7.github.io/ble-powersource/

abkfenris commented 5 years ago

eink https://www.adafruit.com/product/4195

abkfenris commented 5 years ago

Made DataLog (global/singleton?) like Log

Looked at:

abkfenris commented 5 years ago

Libraries to use for logging: