怎么给restful_server增加数据保存的功能?

yaoyulian
Posts: 1
Joined: Thu Feb 15, 2024 4:07 am

怎么给restful_server增加数据保存的功能?

Postby yaoyulian » Thu Feb 15, 2024 4:17 am

运行例程examples\protocols\http_server\restful_server,在网页里能修改Light control,
I (137485) esp-rest: Light control: red = 50, green = 85, blue = 28。
但是esp32重启后修改的内容又恢复到默认值了。
怎样让网页打开后自动显示以前的设定值,而不是显示默认的160,160,160。
数据保存有例程可以实现,网页刚打开时怎么触发esp32读取保存在flash里的Light control再显示到网页?
Last edited by yaoyulian on Thu Aug 29, 2024 2:19 pm, edited 1 time in total.


Who is online

Users browsing this forum: No registered users and 152 guests