[Core] Make more things Async (HTTP Requests, Sensor readings,...) #43
Labels
No labels
bug
documentation
duplicate
enhancement
help wanted
invalid
question
v0.1.x
v0.2.x
v0.3.x
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DeltaLima/CanGrow#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A http request for a tasmota wifi plug for example, can take up to some seconds. During this time in its actual state, the code is completely blocked and does nothing else. This is pretty bad - a pump just could have been triggered and now runs longer than it's expected to be.
Another example of blocking events are sensor readings. BME680 and TC34725 are taking each around 300ms for one data refresh. BME680 has a known way to gather its data asynchronously. (https://github.com/adafruit/Adafruit_BME680/blob/master/examples/bme680async/bme680async.ino)
For HTTP Requests, there is also an library - but I have to figure out if this is too heavy or not. (https://github.com/khoih-prog/AsyncHTTPRequest_Generic/)
splitted webcall stuff off into issue #47