µLua DS - Forum officiel | Official forum Index du Forum

µ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   RechercherRechercher   MembresMembres   GroupesGroupes   S’enregistrerS’enregistrer   ProfilProfil   Se connecter pour vérifier ses messages privésSe connecter pour vérifier ses messages privés   ConnexionConnexion 

Help with Wi-Fi functions?

 
Poster un nouveau sujet   Répondre au sujet    µLua DS - Forum officiel | Official forum Index du Forum -> English section -> Help
Sujet précédent :: Sujet suivant  
Auteur Message
auros


Hors ligne

Inscrit le: 02 Juin 2011
Messages: 2

MessagePosté le: Lun 5 Oct 2015 - 21:58    Sujet du message: Help with Wi-Fi functions? Répondre en citant

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.


Revenir en haut
Publicité






MessagePosté le: Lun 5 Oct 2015 - 21:58    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
geeker


Hors ligne

Inscrit le: 23 Déc 2012
Messages: 363

MessagePosté le: Mar 6 Oct 2015 - 19:38    Sujet du message: Help with Wi-Fi functions? Répondre en citant

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 ...


Revenir en haut
Visiter le site web du posteur
auros


Hors ligne

Inscrit le: 02 Juin 2011
Messages: 2

MessagePosté le: Sam 10 Oct 2015 - 18:08    Sujet du message: Help with Wi-Fi functions? Répondre en citant

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).


Revenir en haut
Contenu Sponsorisé






MessagePosté le: Aujourd’hui à 09:33    Sujet du message: Help with Wi-Fi functions?

Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    µLua DS - Forum officiel | Official forum Index du Forum -> English section -> Help Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

 
Sauter vers:  

Index | Creer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Powered by phpBB © 2001, 2005 phpBB Group
Traduction par : phpBB-fr.com