mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Make string globals persist-able using fixed size allocations (#5296)
Co-authored-by: Daniel Dunn <dannydunn@eternityforest.com>
This commit is contained in:
@@ -5,6 +5,13 @@ esphome:
|
||||
board: nodemcu-32s
|
||||
build_path: build/test2
|
||||
|
||||
globals:
|
||||
- id: my_global_string
|
||||
type: std::string
|
||||
restore_value: yes
|
||||
max_restore_data_length: 70
|
||||
initial_value: '"DefaultValue"'
|
||||
|
||||
substitutions:
|
||||
devicename: test2
|
||||
|
||||
|
Reference in New Issue
Block a user