I'm trying to put together a simple app in PSP python to send UDP messages whenever a button is pressed. I've got a simple app that displays buttonpresses on screen, but whenever I actually try to send the packet it crashes out (PSP turns off and needs a restart).
socket library seems to import ok, and the socket object is created in UDP mode, but the following kills it:
sock.sendto('down',('192.168.0.103',999))
The script runs fine on the PC using PC python with the psp2d and pspnet libraries - it even talks properly to my remote listening app!
Anyone else had problems with UDP under PSP python?
Have you tried a different port? Just a complete shot in the dark, but try something much much higher (I seem to recall something about ports < 1024 being reserved)
Good thought - unfortunately I originally started with port 8000, and only came down to 999 after reading a bit of sample code somewhere. I can't get either to work...
I fear I may have to learn Lua after all to get this done - shame - I much prefer Python!