arduino-libraries / MKRWAN_v2

[Beta] Library for Arduino MKRWAN 1300 / 1310 suitable for firmwares derived from ST sources
GNU Lesser General Public License v3.0
7 stars 6 forks source link

Where has sleep() gone? #1

Closed javafrog closed 3 years ago

javafrog commented 3 years ago

In the previous version, there was a sleep method:

bool sleep(bool on = true) {
    sendAT(GF("+SLEEP="), on);
    if (waitResponse() != 1) {
      return false;
    }
    return true;
  }

which I could use to power down the modem. The method is missing now. How do I achieve the same?

facchinm commented 3 years ago

Hi @javafrog , sorry for the superlate response; sleep() was implemented for compatibility with Murata firmware, but in fact it was handled automatically by the module. This new version of the library gets rid of a bit of dust, so the function was removed (since it really wasn't needed)