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 

Wlan useConnectionConfig hang

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



Joined: 12 Apr 2007
Posts: 5

PostPosted: Fri Apr 20, 2007 10:39 pm    Post subject: Wlan useConnectionConfig hang Reply with quote

I'm trying to code a small wifi app in LuaPlayer,
However, I'm finding that my code is hanging in 0.20.

Code:

  if cross:checkState() then
    sel = selected + 1
    Desktop:fontPrint(font,40,50+(e+2)*20,"Someone set us up the bomb",Color.new(255,255,255))
    update()
    Wlan.useConnectionConfig(sel)
    Desktop:fontPrint(font,40,50+(e+3)*20,"We get signal",Color.new(255,255,255))
    update()
    sck = Socket.connect("192.168.0.2", 80)
    active = true
  end


The cross:checkState() is my own function, the first message appears, then the psp hangs, and the wifi light stays on. If I turn off the wifi switch, the psp unfreezes and the script continues (and of course, fails to connect).

I thought it was just taking a while to connect, however, I tried connecting to another (unsecured) connection and it happened still.

Any ideas?
Back to top
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Wed May 09, 2007 1:38 am    Post subject: Reply with quote

Try to put the socket = socket.connect directly after the useconnectionconfig line. that should work. Take a look at my topic about wlan in luaplayer 0.20 at the forum
_________________
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