Use only Homie compliant datatypes: https://homieiot.github.io/specification/spec-core-v3_0_1/#
This commit is contained in:
parent
9ff546b7b7
commit
16a722816c
@ -24,7 +24,7 @@
|
||||
* @{
|
||||
**/
|
||||
|
||||
#define NUMBER_TYPE "Number" /**< numberic information, published or read in Homie */
|
||||
#define NUMBER_TYPE "Float" /**< numberic information, published or read in Homie */
|
||||
|
||||
/**
|
||||
* @name Temperatur Node
|
||||
|
@ -198,9 +198,9 @@ void Plant::setSwitchHandler(HomieInternals::PropertyInputHandler f) {
|
||||
void Plant::advertise(void)
|
||||
{
|
||||
// Advertise topics
|
||||
mPump = this->mPlant->advertise("switch").setName("Pump").setDatatype("boolean");
|
||||
this->mPlant->advertise("lastPump").setName("lastPump").setDatatype("Number").setUnit("unixtime");
|
||||
this->mPlant->advertise("moist").setName("Percent").setDatatype("Number").setUnit("%");
|
||||
this->mPlant->advertise("moistraw").setName("adc").setDatatype("Number").setUnit("3.3/4096V");
|
||||
this->mPlant->advertise("state").setName("state").setDatatype("string");
|
||||
mPump = this->mPlant->advertise("switch").setName("Pump").setDatatype("Boolean");
|
||||
this->mPlant->advertise("lastPump").setName("lastPump").setDatatype("Integer").setUnit("unixtime");
|
||||
this->mPlant->advertise("moist").setName("Percent").setDatatype("Float").setUnit("%");
|
||||
this->mPlant->advertise("moistraw").setName("adc").setDatatype("Float").setUnit("3.3/4096V");
|
||||
this->mPlant->advertise("state").setName("state").setDatatype("String");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user