File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,8 @@ class BLEWorkflow extends Workflow {
153
153
this . bleServer = await device . gatt . connect ( ) ;
154
154
} catch ( error ) {
155
155
await this . _showMessage ( "Failed to connect to device. Try forgetting device from OS bluetooth devices and try again." ) ;
156
+ // Disable the reconnect button
157
+ this . connectionStep ( 1 ) ;
156
158
}
157
159
if ( this . bleServer && this . bleServer . connected ) {
158
160
console . log ( '> Bluetooth device "' + device . name + ' connected.' ) ;
@@ -168,6 +170,7 @@ class BLEWorkflow extends Workflow {
168
170
this . debugLog ( "connecting to " + device . name ) ;
169
171
try {
170
172
console . log ( 'Watching advertisements from "' + device . name + '"...' ) ;
173
+ console . log ( 'If no advertisements are received, make sure the device is powered on and in range. You can also try resetting the device' ) ;
171
174
await device . watchAdvertisements ( { signal : abortController . signal } ) ;
172
175
}
173
176
catch ( error ) {
You can’t perform that action at this time.
0 commit comments