import scan from '../src/scan' import tc from '@uci/try-catch' const IFACE = null // const IFACE = 'wlx801f029be2a2' // const IFACE = 'wlp2s0f0' ; (async () => { let ret = await tc(scan)(IFACE) if (ret.err) console.log('make error message payload to return', ret.err) console.log('scan array =>\n',ret.res) })().catch(err => { console.error('======Caught Error!==========\n',err) })