 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
burrito
Joined: 27 Aug 2007 Posts: 3
|
Posted: Wed Aug 29, 2007 6:50 am Post subject: Access Point Scanning |
|
|
I'm trying to make a wifi access point scanning app:
| Code: | 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()
|
I get the error "no arguments expected" for the "nametable = Wlan.getConnectionConfigs(2)" line. How can I fix this?
And also, what are the functions for showing each access point's signal strength and encryption (wep, none, etc.)? |
|
| Back to top |
|
 |
chaos^^
Joined: 16 Sep 2007 Posts: 2
|
Posted: Sun Sep 16, 2007 6:43 am Post subject: |
|
|
hi, I'm not an expert but the error is simply to the fact that Wlan.getConnectionConfigs() function doesn't require any argument, so you may use it just as:
| Code: | array = {}
array = Wlan.getConnectionConfigs() |
Hope to been useful.
Enjoy^^ _________________ Dopo la forza non c'č nulla di pių alto del suo dominio! |
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Thu Oct 04, 2007 10:53 pm Post subject: |
|
|
uhm.. I'm no expert either.. but I'm pretty sure that Wlan.getConnectionConfigs() gets configuration's for a network connections that has already been made. LuaPlayer as of right now I dont think has an access point scanner. Please do notify me if I'm wrong... _________________ Enlighten me, Reveal my fate -- Follow - Breaking Benjamin |
|
| Back to top |
|
 |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Sun Dec 09, 2007 1:46 am Post subject: Re: Access Point Scanning |
|
|
| burrito wrote: |
And also, what are the functions for showing each access point's signal strength and encryption (wep, none, etc.)? |
Wow, this forum is still alive? I thought everyone would be at the official one.
Anyway, I'll have to disappoint you. The things you name cannot be read out with luaplayer. the function returns a table with the name of each found connection. No encryption,strength or whatever _________________ Behold! The Underminer got hold of a PSP |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|