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