@@ -284,23 +284,19 @@ int bluetoothCommandAvailable()
284284}
285285
286286// Pass a command string to the BLE Serial interface
287- void bluetoothProcessCommand (char *rxData)
287+ void bluetoothSendCommand (char *rxData)
288288{
289289#ifdef COMPILE_BT
290290 // Direct output to Bluetooth Command
291291 PrintEndpoint originalPrintEndpoint = printEndpoint;
292292
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;
298294
299- processCommand (rxData); // Send command proccesor output to BLE
295+ systemPrint (rxData); // Send command output to BLE, SPP, and Serial
300296 printEndpoint = originalPrintEndpoint;
301297
302298#else // COMPILE_BT
303- processCommand (rxData); // Send command proccesor output to Serial
299+ systemPrint (rxData); // Send command output to Serial
304300#endif // COMPILE_BT
305301}
306302
@@ -564,9 +560,9 @@ void bluetoothStart()
564560 memcpy (record.uuid .uuid .uuid128 , UUID_IAP2, sizeof (UUID_IAP2));
565561 record.service_name_length = strlen (sdp_service_name) + 1 ;
566562 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
570566 esp_sdp_create_record ((esp_bluetooth_sdp_record_t *)&record);
571567 }
572568 }
0 commit comments