Page 1 of 1

Using bluetooth serial and pausing/killing core zero

Posted: Mon Jun 22, 2020 12:40 pm
by av4625
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

Code: Select all

vTaskSuspend
then

Code: Select all

vTaskResume
.

I also tried using

Code: Select all

vTaskDelete
then recreating with

Code: Select all

xTaskCreatePinnedToCore
.

When I either

Code: Select all

vTaskResume
or

Code: Select all

xTaskCreatePinnedToCore
the bluetooth connection has dropped. Is there anyway to pause and resume a bluetooth connection?

Re: Using bluetooth serial and pausing/killing core zero

Posted: Tue Jun 23, 2020 8:06 am
by ESP_Sprite
What exactly is it that you want to pause/resume? The incoming data stream?