Communication with the environment box runs in a thread using a request queue. If too many requests are placed this can result in request timeouts due to the fact that handling the requests might take longer than the timeout of the most recent request in the queue.
Queries to PC_DATA can ocasionally take up to 1 second and causes request timeouts when both UI and measurements request PC_DATA in parallel.
This issue can be resolved by moving the periodic query to PC_DATA inside the environment thread and serving a cached value for both UI and measurements.
Communication with the environment box runs in a thread using a request queue. If too many requests are placed this can result in request timeouts due to the fact that handling the requests might take longer than the timeout of the most recent request in the queue.
Queries to
PC_DATA
can ocasionally take up to 1 second and causes request timeouts when both UI and measurements requestPC_DATA
in parallel.This issue can be resolved by moving the periodic query to
PC_DATA
inside the environment thread and serving a cached value for both UI and measurements.