Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: mDot.h
- Revision:
- 128:79ed06543c8e
- Parent:
- 120:1fbda752c380
- Child:
- 129:3d65480c7adc
--- a/mDot.h Thu Jan 11 13:36:20 2018 -0600 +++ b/mDot.h Tue Jan 23 10:35:53 2018 -0600 @@ -111,6 +111,7 @@ MDOT_AGGREGATED_DUTY_CYCLE = -11, MDOT_MAX_PAYLOAD_EXCEEDED = -12, MDOT_LBT_CHANNEL_BUSY = -13, + MDOT_NOT_IDLE = -14, MDOT_ERROR = -1024, } mdot_ret_code; @@ -1307,8 +1308,9 @@ * For the XDOT * in sleep mode, the device can be woken up on GPIO (0-3), UART1_RX, WAKE or by the RTC alarm * in deepsleep mode, the device can only be woken up using the WKUP pin (PA0, WAKE) or by the RTC alarm + * @returns MDOT_OK on success */ - void sleep(const uint32_t& interval, const uint8_t& wakeup_mode = RTC_ALARM, const bool& deepsleep = true); + int32_t sleep(const uint32_t& interval, const uint8_t& wakeup_mode = RTC_ALARM, const bool& deepsleep = true); /** * Set auto sleep mode