* SensorManager: now can influence advert lat/lon, new custom name:value pairs for custom settings (eg, gps on/off)

* companion: new CMD_GET_CUSTOM_VARS, CMD_SET_CUSTOM_VAR
* T1000e: now supports "gps" custom setting (value "0" or "1")
This commit is contained in:
Scott Powell 2025-05-05 00:15:35 +10:00
parent cd9691ba81
commit e442e94e3d
5 changed files with 82 additions and 26 deletions

View file

@ -8,7 +8,14 @@
class SensorManager {
public:
double node_lat, node_lon; // modify these, if you want to affect Advert location
SensorManager() { node_lat = 0; node_lon = 0; }
virtual bool begin() { return false; }
virtual bool querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) { return false; }
virtual void loop() { }
virtual int getNumSettings() const { return 0; }
virtual const char* getSettingName(int i) const { return NULL; }
virtual const char* getSettingValue(int i) const { return NULL; }
virtual bool setSettingValue(const char* name, const char* value) { return false; }
};