uci-wifi/test/disconnect.mjs

17 lines
431 B
JavaScript
Raw Normal View History

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)
})