µLua DS - Forum officiel | Official forum Forum Index

µLua DS - Forum officiel | Official forum
Le bon endroit pour en savoir plus sur MicroLua et pour parler de vos projets ! | The right place to learn more about MicroLua and talk about your projects !

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with Wi-Fi functions?

 
Post new topic   Reply to topic    µLua DS - Forum officiel | Official forum Forum Index -> English section -> Help
Previous topic :: Next topic  
Author Message
auros


Offline

Joined: 02 Jun 2011
Posts: 2

PostPosted: Mon 5 Oct 2015 - 21:58    Post subject: Help with Wi-Fi functions? Reply with quote

Hello guys. I've used uLua DS for some time now (in fact, I helped make the Spanish tutorials at NDS Scenebeta, everybody seemed to enjoy them at the time), and this month I decided to start with a game.


Part of the game functionality depends on scanning nearby connections, and loading a certain map (or more), based on a specific SSID. No connection required, the SSID is just used as a reference to load things. And it would work really well, but I'm having trouble with the WiFi functions. Maybe I'm just using them wrong.


I did some tests. So far, I'm able to turn on the WiFi with Wifi.initDefault(), scan with Wifi.scanAP(), and get the amount of networks with Wifi.getNumAP(). That last thing gives me weird output (10-12 networks around me? Is it just scanning twice?), but seems to work. However, when I pass a number to Wifi.getAP(), and try to read from it, it displays some different errors.
- Sometimes it says I'm trying to get information from an inexistent AP, translated from French.
-Recently it has being saying that I'm trying to screen.print() a 'nil' value, my variable wlTable, which is supposed to store then result from Wifi.getAP().


Could you point me in the right direction? What am I doing wrong? Is there a better way to do what I want?


Thanks in advanced.


Back to top
Publicité






PostPosted: Mon 5 Oct 2015 - 21:58    Post subject: Publicité

PublicitéSupprimer les publicités ?
Back to top
geeker


Offline

Joined: 23 Dec 2012
Posts: 364

PostPosted: Tue 6 Oct 2015 - 19:38    Post subject: Help with Wi-Fi functions? Reply with quote

What console do you use ?
If you need to test the Wifi functions, you can try gestConn, if it displays what you need your code should work. You can also look at the function "listeWifiAP".

I've never used the Wifi functions, so I can't help a lot ...
_________________
Beta-testeur de l'extrème
Tox: FFBDC8B34DC3CDE51F8F1CB0A628147DE740ACD1D44682EB5492A681F6541E32E8D8BB6052B3
CtrµLua: ctrulua.github.io
Des p'tits true, des p'tits true, toujours des p'tits true ...


Back to top
Visit poster’s website
auros


Offline

Joined: 02 Jun 2011
Posts: 2

PostPosted: Sat 10 Oct 2015 - 18:08    Post subject: Help with Wi-Fi functions? Reply with quote

Hey, thanks for replying. Thought the forum was dead or something.

I'm checking the code and trying small chunks of it in my code, I'm making progress (still no output, but it's not a big deal as before). Thanks. I use a Nintendo DS Lite, but I also have an original NDS lying around. The code I was using was very similar. The only time I had tried WiFi with Lua was with a previously saved network (on firmware), using sockets (turned out alright).


Back to top
Display posts from previous:   
Post new topic   Reply to topic    µLua DS - Forum officiel | Official forum Forum Index -> English section -> Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  

Index | Create a forum | Free support forum | Free forums directory | Report a violation | Cookies | Charte | Conditions générales d'utilisation
Powered by phpBB © 2001, 2005 phpBB Group