Send local stats telemetry to phone every 15 minutes (#4475)

* Send local stats telemetry to phone every 10 minutes

* Add debug log and bump to 15 minutes

* Tronk

* Explicit has_ optional
This commit is contained in:
Ben Meadors authored and GitHub committed 2024-08-16 17:15:51 -05:00
1 parent b0c1b7b7b5
commit e61bd84116
25 files changed
+122 -6

No files matched your search

@@ -53,6 +53,9 @@ float VEML7700Sensor::getResolution(void)
bool VEML7700Sensor::getMetrics(meshtastic_Telemetry *measurement)
{
measurement->variant.environment_metrics.has_lux = true;
measurement->variant.environment_metrics.has_white_lux = true;
int16_t white;
measurement->variant.environment_metrics.lux = veml7700.readLux(VEML_LUX_AUTO);
white = veml7700.readWhite(true);