23 lines
454 B
C
23 lines
454 B
C
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include "app_config.h"
|
|
|
|
struct SensorData {
|
|
float tempsF[MAX_TEMP_SENSORS];
|
|
bool online[MAX_TEMP_SENSORS];
|
|
};
|
|
|
|
extern SensorData sensors;
|
|
|
|
void initSensors();
|
|
void updateSensors();
|
|
|
|
int scanTempSensors();
|
|
int getTempScanResultCount();
|
|
String getTempScanResultAddress(int index);
|
|
void printSensorAddresses();
|
|
|
|
bool assignTempSensorByIndex(int configIndex, int scanIndex);
|
|
bool clearTempSensor(int configIndex);
|