@@ -284,23 +284,19 @@ int bluetoothCommandAvailable()
284
284
}
285
285
286
286
// Pass a command string to the BLE Serial interface
287
- void bluetoothProcessCommand (char *rxData)
287
+ void bluetoothSendCommand (char *rxData)
288
288
{
289
289
#ifdef COMPILE_BT
290
290
// Direct output to Bluetooth Command
291
291
PrintEndpoint originalPrintEndpoint = printEndpoint;
292
292
293
- printEndpoint = PRINT_ENDPOINT_BLUETOOTH_COMMAND;
294
- if (settings.debugCLI == true )
295
- printEndpoint = PRINT_ENDPOINT_ALL;
296
- else
297
- printEndpoint = PRINT_ENDPOINT_BLUETOOTH_COMMAND;
293
+ printEndpoint = PRINT_ENDPOINT_ALL;
298
294
299
- processCommand (rxData); // Send command proccesor output to BLE
295
+ systemPrint (rxData); // Send command output to BLE, SPP, and Serial
300
296
printEndpoint = originalPrintEndpoint;
301
297
302
298
#else // COMPILE_BT
303
- processCommand (rxData); // Send command proccesor output to Serial
299
+ systemPrint (rxData); // Send command output to Serial
304
300
#endif // COMPILE_BT
305
301
}
306
302
@@ -564,9 +560,9 @@ void bluetoothStart()
564
560
memcpy (record.uuid .uuid .uuid128 , UUID_IAP2, sizeof (UUID_IAP2));
565
561
record.service_name_length = strlen (sdp_service_name) + 1 ;
566
562
record.service_name = (char *)sdp_service_name;
567
- // record.service_name_length = strlen(deviceName) + 1; // Doesn't seem to help the failed connects
568
- // record.service_name = (char *)deviceName;
569
- // record.rfcomm_channel_number = 1; // Doesn't seem to help the failed connects
563
+ // record.service_name_length = strlen(deviceName) + 1; // Doesn't seem to help the failed connects
564
+ // record.service_name = (char *)deviceName;
565
+ // record.rfcomm_channel_number = 1; // Doesn't seem to help the failed connects
570
566
esp_sdp_create_record ((esp_bluetooth_sdp_record_t *)&record);
571
567
}
572
568
}
0 commit comments