Complete the code to set the WiFi module to low power mode.
wifi.setPowerMode([1])Setting the power mode to "LOW" reduces WiFi power consumption.
Complete the code to enable WiFi sleep mode for power saving.
wifi.[1]Sleep(true)Enabling sleep mode allows the WiFi module to save power when idle.
Fix the error in the code to increase WiFi beacon interval for power saving.
wifi.setBeaconInterval([1])Increasing the beacon interval to 5000 ms reduces how often WiFi wakes up, saving power.
Fill both blanks to create a dictionary that maps WiFi states to power consumption levels.
power_levels = {"CONNECTED": [1], "DISCONNECTED": [2]When connected, WiFi uses HIGH power; when disconnected, it uses LOW power.
Fill all three blanks to create a dictionary comprehension filtering WiFi networks with signal strength above threshold.
strong_networks = {net: [1] for net, [2] in networks.items() if [3] > -70}The dictionary maps network names (net) to their signal strength if signal_strength is greater than -70 dBm.
