Added getSoftVersion method to get the current software version
This commit is contained in:
parent
6f74c10140
commit
47eb7889d0
@ -148,6 +148,11 @@ PowerInfo SAB::getPowerInfo(const unsigned char nbOfMeasures) const
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *SAB::getSoftVersion() const
|
||||||
|
{
|
||||||
|
return SOFT_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned char SAB::getError() const
|
unsigned char SAB::getError() const
|
||||||
{
|
{
|
||||||
return _error;
|
return _error;
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#include "WEBServerManager.h"
|
#include "WEBServerManager.h"
|
||||||
#include "IOManager.h"
|
#include "IOManager.h"
|
||||||
#include "TaskSchedulerManager.h"
|
#include "TaskSchedulerManager.h"
|
||||||
|
#include "versions.h"
|
||||||
#include <Adafruit_SSD1306.h>
|
#include <Adafruit_SSD1306.h>
|
||||||
#include <RTClib.h>
|
#include <RTClib.h>
|
||||||
#include <SD.h>
|
#include <SD.h>
|
||||||
@ -38,6 +39,7 @@ class SAB
|
|||||||
SDCardConfig getSdCardConfig() const;
|
SDCardConfig getSdCardConfig() const;
|
||||||
|
|
||||||
PowerInfo getPowerInfo(const unsigned char nbOfMeasures = 5) const;
|
PowerInfo getPowerInfo(const unsigned char nbOfMeasures = 5) const;
|
||||||
|
const char *getSoftVersion() const;
|
||||||
unsigned char getError() const;
|
unsigned char getError() const;
|
||||||
private:
|
private:
|
||||||
void initGPIO();
|
void initGPIO();
|
||||||
|
Loading…
Reference in New Issue
Block a user