[tuxdroid-user] Status events handling
Status: Beta
Brought to you by:
ks156
From: Florian M. <flo...@x-...> - 2009-01-24 10:50:49
|
Good morning. I recently bought a tux droid \o/ After searching a bit in the documentation about how programming it, it finally comes up that there was no API written for BASH. I've already written some applications using netcat to forward instructions to the droid but i want to create now some interactive applications using buttons, light detector and microphone. The problem i'm facing is i couldn't find any information on how is working the events system. I looked at the TuxAPI.js and read the function concerning the callback of events.. but the only call is made to status/events? The real problem is that when i'm calling the status/events? page, it always return me the "failed" status... and i don't find any explanation. I started to look at the /status/request_all? and find timers of the last event and booleans but every buttons seem to be on the same handler since when i push on the right wing, the delay counter of the left wings start back at 0 too. Can anyone provide some information or experience about this ? Thank you -------- Bonjour, J'ai acheté recemment un tux droid \o/ Après avoir cherché un petit peu dans la documentation sur comment le programmer, j'ai réalisé qu'il ne semblait pas il y avoir d'API pour Bash. J'ai déjà écrit qq applications avec netcat pour envoyer des commandes au droid, et ca marche plutot bien mais je veux également faire des applications interactive avec les boutons, le détecteur de lumière et le micro. Mon problème est que je ne trouve aucune information concernant le gestionnaire d'évènements... J'ai regardé dans le code de TuxAPI.js et lu la fonction concernant le callback des évènements, mais le seul appel qui est fait, est fait à la page status/events? Tout mon problème est que quand j'appelle cette page, il me renvoie uniquement "failed" et je ne vois aucune explication du pourquoi du comment.. J'ai également essayé de faire les choses avec /status/request_all? et j'ai trouvé des timers et des booléens des derniers évènements, mais il semblerait que les timers soient les mêmes pour tous les boutons car quand j'appuie sur l'aile gauche, ca met le compteur de l'aile droite aussi à 0... Qqn a t il des informations à ce sujet ? Qqn a déjà programmé des API pour le tux gérant des évènements parmi vous ? Merci à vous Florian |