Function connectBle

Connects to a generic Espruino BLE device. See EspruinoBleDevice for more info. Use puck if you're connecting to a Puck.js

If opts.name is specified, only this BLE device will be shown.

const e = await connectBle({ name: `Puck.js a123` });

opts.filters overrides and sets arbitary filters.

import { Espruino } from 'https://unpkg.com/ixfx/dist/io.js'
const filters = [
{ namePrefix: `Puck.js` },
{ namePrefix: `Pixl.js` },
{services: [NordicDefaults.service] }
]
const e = await Espruino.connectBle({ filters });