A Widget
Need to specify server IP, User name, Password, and can do a remote API calling ( SERVER_IP/mobileAPI.php
use POST method sending 3 parameter "action" / "uid" / "pwd"
Example for "action" value :
When testing connection : action = "ping"
When clicking widget : action = "open" / "action1" / .... whatever
String return from API:
Success : "1"
Invalid ID or Password : "2"
Unauthorized action : "3"
Parameter error : "4"
Other error: String starts with "E1",or any other string
Note : You need server program to work with this APP
A Sample of implementation :
"Remote unlocker"
Raspberry Pi (with nginx) installed a RF 433MHz Module
Nginx receive HTTP request from APP to web API ( /mobileAPI.php ),
execute binary file to sending RF signals through RF Module
Wireless switch(433MHz) connect to electric lock(Electric Dropbolt)
(wireless switch must paired with RPi's RF signal output)
when switch received RF signal from RPi,switch triggers Electric Dropbolt and release the door
Demo of server side program :
https://code.google.com/p/remote-controller-http-api/source/browse/trunk/mobileAPI.php
</div> <div jsname="WJz9Hc" style="display:none">Bir Widget
Sunucu IP, kullanıcı adı, Parola belirtmek gerekiyor, ve çağrı uzak API (server_IP / mobileAPI.php yapabilirsiniz
POST yöntemi 3 parametre gönderme "eylem" kullanın / "uid" / "pwd"
"Eylem" değeri Örnek:
Bağlantı sınarken: action = "ping"
Widget tıklayarak Ne zaman: = "open" / "action1" eylem / .... ne olursa olsun
API Dize dönüş:
Başarı: "1"
Geçersiz kimlik veya Şifre: "2"
İzinsiz eylem: "3"
Parametre hatası: "4"
Diğer hata: String "E1", ya da diğer herhangi bir dize ile başlar
Not: Bu APP ile çalışmak için sunucu programına ihtiyacınız
Uygulama bir örnek:
"Uzaktan Unlocker"
(Nginx ile) Raspberry Pi RF 433MHz Modülü yüklü
Nginx, web API APP (/mobileAPI.php) HTTP isteği almak
RF Modülü aracılığıyla RF sinyalleri göndererek ikili dosyasını çalıştırmak
Kablosuz anahtarı (433MHz) elektrikli kilit bağlanmak (Elektrik Dropbolt)
(Kablosuz anahtar RPI RF sinyal çıkışı ile eşleştirilmiş olmalıdır)
Anahtar RPI'nin RF sinyali aldığında, anahtar Elektrik Dropbolt tetikler ve kapı bırakın
Sunucu tarafı programının Demo:
https://code.google.com/p/remote-controller-http-api/source/browse/trunk/mobileAPI.php</div> <div class="show-more-end">