Sensor types are defined in platformio.ini

This commit is contained in:
Ollo
2022-03-06 14:25:14 +01:00
parent 9a172c269e
commit 6c475a2ade
4 changed files with 48 additions and 7 deletions

View File

@@ -27,6 +27,8 @@
#define NUMBER_TYPE "Float" /**< numberic information, published or read in Homie */
/**
* @}
*
* @name Temperatur Node
* @{
**/

View File

@@ -13,12 +13,22 @@
#include <Homie.h>
/**
* @name Sensor types
* possible sensors:
* @{
**/
#define FOREACH_SENSOR(SENSOR) \
SENSOR(NONE) \
SENSOR(CAPACITIVE_FREQUENCY) \
SENSOR(ANALOG_RESISTANCE_PROBE) \
SENSOR(SHT20)
/**
* @}
*/
#define GENERATE_ENUM(ENUM) ENUM,
#define GENERATE_STRING(STRING) #STRING,