Hello,
I'm developing a project where I collect the data from the can interfaces and send it with EthernetClient to the cloud.
EthernetClient is running in a thread function and sends the data regularly to the cloud.
In the main loop, I collect the data from the can interfaces.
Basically It works.
The problem that I have is that the EthernetClient seems to block the switch from the thread function to the main loop for approximately 8 seconds.
The function sends the data in 1 to 2 sec. So every time I send the data, I lose approximately 6 seconds
How can I achieve a faster change to the main loop?
Thank you
Harry
I'm developing a project where I collect the data from the can interfaces and send it with EthernetClient to the cloud.
EthernetClient is running in a thread function and sends the data regularly to the cloud.
In the main loop, I collect the data from the can interfaces.
Basically It works.
The problem that I have is that the EthernetClient seems to block the switch from the thread function to the main loop for approximately 8 seconds.
The function sends the data in 1 to 2 sec. So every time I send the data, I lose approximately 6 seconds
How can I achieve a faster change to the main loop?
Thank you
Harry