Optionaloptions: Record<string, any> | nullAn object with any of:
A Promise resolving to the peripherals found when the scan ends, or when stopScan() is called. Rejects if a scan is already running, the options are invalid, or Bluetooth is unavailable
Scans for BLE peripherals nearby. Only one scan can run at a time. Each peripheral found is also delivered to
'discovered'listeners (seeon()) as soon as it's seen.