Benutzer:Amogorkon/PiLife/IPlamp

Aus Piratenwiki Mirror
< Benutzer:Amogorkon‎ | PiLife
Version vom 31. August 2009, 16:36 Uhr von imported>Amogorkon (Die Seite wurde neu angelegt: „The IPlamp is a small test for PiLife. The idea is to represent a small lamp inside the application, and also be able to control its state. For a first test a sm…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

The IPlamp is a small test for PiLife. The idea is to represent a small lamp inside the application, and also be able to control its state.

For a first test a small app is written that communicates via XMPP. There are two functions: getstatus() and switch(). One to get the current status, the other to toggle between on and off.