ml-wifi
v0.0.8
Published
The wifi package for Microlattice.js
Downloads
4
Readme
ml-wifi
API
AP mode
__wifi({
mode: 'ap', // default is station
auth: 'PSK_WPA2',
ssid: 'Input your ssid',
password: 'Input your password',
});
Station mode
__wifi({
mode: 'station', // default is station
auth: 'PSK_WPA2',
ssid: 'Input your ssid',
password: 'Input your password',
});
global.eventStatus.on('wifiConnect', function(){
// if wifi connect ...
});