[Core] Make more things Async (HTTP Requests, Sensor readings,...) #43

Open
opened 2025-04-15 00:43:57 +02:00 by DeltaLima · 1 comment
Owner

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/)

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/)
DeltaLima removed this from the v0.2.0 Release milestone 2025-04-15 00:47:59 +02:00
DeltaLima removed reference firmware_v0.2-dev 2025-04-15 00:48:04 +02:00
Author
Owner

splitted webcall stuff off into issue #47

splitted webcall stuff off into issue #47
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DeltaLima/CanGrow#43
No description provided.