Function esp_idf_svc::sys::esp_mesh_get_running_active_duty_cycle

source ยท
pub unsafe extern "C" fn esp_mesh_get_running_active_duty_cycle() -> i32
Expand description

@brief Get the running active duty cycle - The running active duty cycle of the root is 100. - If duty type is set to MESH_PS_DEVICE_DUTY_REQUEST, the running active duty cycle is nwk_duty provided by the network. - If duty type is set to MESH_PS_DEVICE_DUTY_DEMAND, the running active duty cycle is dev_duty specified by the users. - In a mesh network, devices are typically working with a certain duty-cycle (transmitting, receiving and sleep) to reduce the power consumption. The running active duty cycle decides the amount of awake time within a beacon interval. At each start of beacon interval, all devices wake up, broadcast beacons, and transmit packets if they do have pending packets for their parents or for their children. Note that Low-duty-cycle means devices may not be active in most of the time, the latency of data transmission might be greater.

@return the running active duty cycle