8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c110e commit a0f0bd9Copy full SHA for a0f0bd9
libraries/BluetoothSerial/src/BluetoothSerial.cpp
@@ -152,6 +152,9 @@ static bool _init_bt(const char *deviceName)
152
static bool _stop_bt()
153
{
154
if (btStarted()){
155
+ if(_spp_client)
156
+ esp_spp_disconnect(_spp_client);
157
+ esp_spp_deinit();
158
esp_bluedroid_disable();
159
esp_bluedroid_deinit();
160
btStop();
@@ -172,6 +175,7 @@ BluetoothSerial::BluetoothSerial()
172
175
BluetoothSerial::~BluetoothSerial(void)
173
176
174
177
_stop_bt();
178
+ vQueueDelete(_spp_queue);
179
}
180
181
bool BluetoothSerial::begin(String localName)
@@ -262,6 +266,7 @@ void BluetoothSerial::flush()
262
266
void BluetoothSerial::end()
263
267
264
268
269
265
270
271
272
#endif
0 commit comments