We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently to use a wireless access point you can either do:
let { WiFi } = require('wifi') let wifi = new WiFi() wifi._dev.wifiApMode({ ssid: 'Pico', password: 'password' }, (err) => { if (err) console.error('err', err) console.log('access point running') })
or:
let { PicoCYW43WIFI } = require('pico_cyw43') let pico_cyw43 = new PicoCYW43WIFI() pico_cyw43.wifiApMode({ ssid: 'Pico', password: 'password' }, (err) => { if (err) console.error('err', err) console.log('access point running') })
... it would be better if you could put the wifiApMode() function directly in the wifi object, outside the _dev object for usage:
wifiApMode()
wifi
_dev
let { WiFi } = require('wifi') let wifi = new WiFi() wifi.wifiApMode({ ssid: 'Pico', password: 'password' }, (err) => { if (err) console.error('err', err) console.log('access point running') })
The text was updated successfully, but these errors were encountered:
communix
No branches or pull requests
Currently to use a wireless access point you can either do:
or:
... it would be better if you could put the
wifiApMode()
function directly in thewifi
object, outside the_dev
object for usage:The text was updated successfully, but these errors were encountered: