mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-11-18 13:11:27 +01:00
correct handling for grove based iic sensors
This commit is contained in:
1 parent
99d7484afb
commit
b091d9aee4
8 files changed
+73
-54
No files matched your search
@@ -22,11 +22,12 @@ class SensorBase{
|
||||
int busId=0;
|
||||
int iid=99; //N2K instanceId
|
||||
int addr=-1;
|
||||
String prefix;
|
||||
const String prefix;
|
||||
const String type;
|
||||
long intv=0;
|
||||
bool ok=false;
|
||||
virtual void readConfig(GwConfigHandler *cfg)=0;
|
||||
SensorBase(GwApi *api,const String &prfx):prefix(prfx){
|
||||
SensorBase(const String &tn,GwApi *api,const String &prfx):type(tn),prefix(prfx){
|
||||
}
|
||||
using Creator=std::function<SensorBase<BUS> *(GwApi *api,const String &prfx)>;
|
||||
virtual bool isActive(){return false;};
|
||||
|
||||
Reference in new issue
Block a user