To begin using this shortcut,
You MUST manually create a folder on your iPhone named Shortcuts/Semaphore
Contact me for more info
[email protected]                                         
                                                                            
                                             NOTE: To make this shortcut work, YOU MUST MANUALLY create a folder on your iPhone named Shortcuts/Semaphore/Bluetooth
Here, this shortcut and a companion shortcut will create & delete LockFiles.
                                        
                                                                            
                                             202501Jan24-1500h  IFF the disconnected device was unmanaged, do not give 1minute grace period; simple check whether or not to auto-off BlueTooth                                        
                                                                            
                                             Whenever device  is disconnected, delete a BTdevice lockfile.
Return result of Test&Clear                                         
                                                                            
                                             20250Jan08-2000h PROVIDE  [60] SIXTY SECONDS (1min) ALLOWANCE rather than dropping BlueTooth immediately.                                        
                                                                            
                                             ^^^^ Above, delete Device Lock File ASAP & immediate deletion, to permit same device to re-connect quickly.                                        
                                                                            
                                             20250Jan08-2000h 1.KEEP BT ON because a fresh BT DEVICE might CONNECT in the meanwhile. 
expressly DELAY  [60] SECONDS.
 
                                        
                                                                            
                                             202411Nov26 FOR TODAY OMIT REDUNDANTLY TURNING ON BLUETOOTH, because might cause unbeknownst race condition. ⁉️                                        
                                                                            
                                             #### AUTO-OFF 😁  🟦🦷 ####
#### IF NO DEVICE BT LOCK FILES EXIST, 60second delay helps avoid connection RACE CONDITION. AUTO-TURN OFF BLUETOOTH XMIT’R