File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
libraries/Bluefruit52Lib/examples/DualRoles/dual_bleuart Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -154,14 +154,10 @@ void prph_bleuart_rx_callback(void)
154
154
*------------------------------------------------------------------*/
155
155
void scan_callback (ble_gap_evt_adv_report_t * report)
156
156
{
157
- // Check if advertising contain BleUart service
158
- if ( Bluefruit.Scanner .checkReportForService (report, clientUart) )
159
- {
160
- Serial.println (" BLE UART service detected. Connecting ... " );
161
-
162
- // Connect to device with bleuart service in advertising
163
- Bluefruit.Central .connect (report);
164
- }
157
+ // Since we configure the scanner with filterUuid()
158
+ // Scan callback only invoked for device with bleuart service advertised
159
+ // Connect to the device with bleuart service in advertising packet
160
+ Bluefruit.Central .connect (report);
165
161
}
166
162
167
163
void cent_connect_callback (uint16_t conn_handle)
@@ -214,4 +210,3 @@ void cent_bleuart_rx_callback(BLEClientUart& cent_uart)
214
210
clientUart.println (" [Cent] Peripheral role not connected" );
215
211
}
216
212
}
217
-
You can’t perform that action at this time.
0 commit comments