Code: Select all
red = Color.new(255,0,0)
white = Color.new(255,255,255)
gray = Color.new(190,190,190)
while true do
screen.waitVblankStart()
screen.flip()
screen:print(25,15, "Router Name",red)
screen:print(195,15, "Strength",red)
screen:print(365,15, "Encryption",red)
screen:print(0,25, "------------------------------------------------------------",red)
screen:print(15,255, "Battery:",gray)
screen:print(110,255, "%",gray)
System.powerIsPowerOnline()
System.powerIsBatteryExist()
percent = System.powerGetBatteryLifePercent()
screen:print(100,255, percent,gray)
Wlan.init()
nametable = Wlan.getConnectionConfigs(2)
nametable = {a,b,c,d,e,f,g,h,i}
screen:print(25, 30, nametable.a,white)
screen:print(25, 40, nametable.b,white)
screen:print(25, 50, nametable.c,white)
screen:print(25, 60, nametable.d,white)
screen:print(25, 70, nametable.e,white)
screen:print(25, 80, nametable.f,white)
screen:print(25, 90, nametable.g,white)
screen:print(25, 100, nametable.h,white)
screen:print(25, 110, nametable.i,white)
end
Wlan.scanTerm()
And also, what are the functions for showing each access point's signal strength and encryption (wep, none, etc.)?