ml-wifi

0.0.8 • Public • Published

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

/ml-wifi/

    Package Sidebar

    Install

    npm i ml-wifi

    Weekly Downloads

    3

    Version

    0.0.8

    License

    Apache2

    Last publish

    Collaborators

    • iamblue