7.2. wlan — Link status related functions

The wlan module provides functions for getting information regarding the link status.

7.2.1. Functions

wlan.ip()

Return the IP of the device.

wlan.signal_strength()

Return the signal strength of the wireless link.

import wlan
import time

print("Get Device ip")
ip = wlan.ip()
print (ip)

signal = wlan.signal_strength()
print ("Signal Strength is: " + str(signal))

while(True):
      time.sleep(5)