(07-18-2023, 06:43 AM)marcopc Wrote:Hello(07-15-2023, 07:39 PM)iliaslamprou Wrote: Hi, I have created a video about the widget "Schedule display"
https://youtu.be/P9ij0S0gABs
You can download the arduino code from the description of the video or from here:
https://virtuino.com/downloads/virtuino_...xample.zip
It's OK
Thanks
i have tried many, many time your sketch but not work, i received json from schedule widget and stored value in a string scheduleHolder, then when i connect the app nothing happen, esp32 send a command in correct format but the app nothing display.
Where is a mistake?
Hello
i think that i find the problem, i try to explain.
When i send a new schedule i receive a string below
Code:
{
value={"ID":"schedule","date":"Fri 2023-07-21 02:07:05","state":1,"items":[{"D":"1111111","H":8,"M":0,"S":0,"ST":1}]}
Send: {"schedule":"{"ID":"schedule","date":"Fri 2023-07-21 02:07:05","state":1,"items":[{"D":"1111111","H":8,"M":0,"S":0,"ST":1}]}"} // Work
Send: {"scheduleA":"{"ID":"schedule","date":"Fri 2023-07-21 02:07:05","state":1,"items":[{"D":"1111111","H":8,"M":0,"S":0,"ST":1}]}"} // NOT work
}
I have 2 schedule display and i have called scheduleA and scheduleB but nothing work, but when i changed scheduleA in schedule, wow it's work!!!!
If i send value with "ID":"schedule" and tag=schedule it's work, if i send value with "ID":"schedule" with tag=scheduleA not work, but i don't know how change "ID":"schedule".