forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Access Point Scanning

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
burrito



Joined: 27 Aug 2007
Posts: 3

PostPosted: Wed Aug 29, 2007 6:50 am    Post subject: Access Point Scanning Reply with quote

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
View user's profile Send private message
chaos^^



Joined: 16 Sep 2007
Posts: 2

PostPosted: Sun Sep 16, 2007 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Thu Oct 04, 2007 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Sun Dec 09, 2007 1:46 am    Post subject: Re: Access Point Scanning Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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