dawidchyrzynski / arduino-home-assistant

ArduinoHA allows to integrate an Arduino/ESP based device with Home Assistant using MQTT.
https://dawidchyrzynski.github.io/arduino-home-assistant/
GNU Affero General Public License v3.0
521 stars 121 forks source link

HASensor.h#L73 "setStateClass" - no member #270

Closed Digital-MoBa closed 2 months ago

Digital-MoBa commented 2 months ago

If I add an HASensor and want to set the setStateClass I get this ERROR: 'class HASensor' has no member named 'setStateClass'

Digital-MoBa commented 2 months ago

It's the same if I want to use on an ESP8266: mqtt.setBufferSize(512); // set the buffer size to 512 bytes, default is 256 bytes mqtt.setKeepAlive(60); // set the keep alive interval to 60 seconds, default is 15 seconds

There is the ERROR: 'class HAMqtt' has no member named 'setBufferSize' 'class HAMqtt' has no member named 'setKeepAlive'

dawidchyrzynski commented 2 months ago

Please upgrade the library to 2.1.0.