You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with esp32 (esp32-wroom-32-n4) with BLE and Wifi enabled at the same time, and also connecting to an mqtt broker via secure ports.
A standalone application that just connects to BLE and mqtt broker works fine, but whenever I try to create a thread (with lowest preemtive prio) to pull and process the data from these channels the mqtt connection fails becuase the TLS handshake is extremely slow (~30 seconds on avarage) and even after the connection is made the messages arrives way too late.
When I analyze the thread utilization I dont neccesarily see the BT threads starving other threads but whenever I disable BT subsys, everything works just fine. And BT threads have the highest priority (all coopertive threads), maybe interrupts causing this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am working with esp32 (esp32-wroom-32-n4) with BLE and Wifi enabled at the same time, and also connecting to an mqtt broker via secure ports.
A standalone application that just connects to BLE and mqtt broker works fine, but whenever I try to create a thread (with lowest preemtive prio) to pull and process the data from these channels the mqtt connection fails becuase the TLS handshake is extremely slow (~30 seconds on avarage) and even after the connection is made the messages arrives way too late.
When I analyze the thread utilization I dont neccesarily see the BT threads starving other threads but whenever I disable BT subsys, everything works just fine. And BT threads have the highest priority (all coopertive threads), maybe interrupts causing this?
I have the following configuration;
Beta Was this translation helpful? Give feedback.
All reactions