Using bluetooth serial and pausing/killing core zero
Posted: Mon Jun 22, 2020 12:40 pm
I am using bluetooth serial to read obd data from a car and this task is running on core zero.
Core 1 shows the data.
This all works as expected.
When I get user input on a rotary encoder I want to pause the bluetooth task on core zero, do some settings work, when the settings work is over I want to resume task zero.
I tried using then .
I also tried using then recreating with .
When I either or the bluetooth connection has dropped. Is there anyway to pause and resume a bluetooth connection?
Core 1 shows the data.
This all works as expected.
When I get user input on a rotary encoder I want to pause the bluetooth task on core zero, do some settings work, when the settings work is over I want to resume task zero.
I tried using
Code: Select all
vTaskSuspend
Code: Select all
vTaskResume
I also tried using
Code: Select all
vTaskDelete
Code: Select all
xTaskCreatePinnedToCore
When I either
Code: Select all
vTaskResume
Code: Select all
xTaskCreatePinnedToCore