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

Ability to use strings stored in flash. #267

Open bennydiamond opened 3 months ago

bennydiamond commented 3 months ago

Hi,

I saw an easy way to save a few bytes of memory by using PROGMEM data for some fields. Saves a bit of memory depending on how long these fields are. No breaking change.

Obviously it could be expanded to other fields but it's a start.

Tested working on my Arduino Uno device previously running ArduinoHA 2.1.0 stock.