User Manual

Table Of Contents
4-38 Millennial Net
Using the MeshScape API
4. ibApi_LPR_GetWakeupAndDutyRatio)
ibApi_FUNC ibApi_LPR_GetWakeupAndDutyRatio(
ibApi_APIHANDLE api_hdl,
ibApi_GROUPID network,
ibApi_UINT32 * wakeup_interval,
ibApi_UINT32 * sleep_interval,
ibApi_UINT32 * duty_ratio
);
This function retrieves the low power router wakeup interval and duty ratio for all devices.
Parameters:
api_hdl: (input) API handle returned from ibApi_Open().
network: (input) Group ID of the network.
wakeup_interval: (output) Wakeup interval in milliseconds.
sleep_interval: (output) Sleep time in milliseconds.
duty_ratio: (output) the duty ratio (5 - 1000), in increments of 5.
Return Value:
ibApi_RESULT_SUCCESS if successful, ibApi_RESULT_ROUNDOFF if round off error detected
or other error code (<0) upon failure.