LORAWAN_ReadyToSleep

Definition: This function is used for querying the stack’s readiness for sleep. This function has a dependency on radio for the corresponding readiness check function in TAL.

Syntax

bool LORAWAN_ReadyToSleep(bool deviceResetAfterSleep);

Input Parameters

Table 1. Input Parameter

Parameter Name

Parameter Type

Description

deviceResetAfterSleep

boolean

  • ‘true’ means device is reset during the wake up
  • ‘false’ means device is not reset during wake up

Return Type and Values

Table 2. Return Type

Parameter Name

Parameter Type

Description

Bool

Boolean

  • ‘true’ – stack is in Ready state to sleep

    or

  • ‘false’

API Type – Synchronous