ml-fota

0.0.2 • Public • Published

ml-fota

Required

  • ml-wifi

API

/* Download the fota image. */

__fota(
  url, // string
)

Don't forget to Change the Bootloader.

Example

  __wifi({
    mode: 'station', // default is station
    auth: 'PSK_WPA2',
    ssid: 'Input your ssid',
    password: 'Input your password',
  });

  global.eventStatus.on('wifiConnect', function() {
      __fota("http://cdn.mediatek.com/firmwares/PuxQFhlHKM2B/36c8248e37161cc333a6cbb6f2586a42/output.bin");
  });

/ml-fota/

    Package Sidebar

    Install

    npm i ml-fota

    Weekly Downloads

    2

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • iamblue