如何interract Android应用程序与树莓派......? [英] How to interract android applications with a raspberry PI ...?

查看:450
本文介绍了如何interract Android应用程序与树莓派......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以计划我的树莓PI控制使用Python或接线-PI C库它的GPIO。 我可以像webiopi或web2py的网络界面来控制它。

I can program my Raspberry PI to control its GPIOs using Python or Wiring-PI C library. I can control it with web interfaces like webiopi or web2py.

我打算做的是写我自己的Andr​​oid应用程序(仅由我创建的布局),并希望这个程序来远程存取权限的PI和运行存储的的GPIO控制code。

What I intend to do is write my own android app (layouts created by me only) and want this app to remotely acces the PI and run the code stored for the GPIOs control.

我要我的Java code,远程控制我的C code或类似的东西。

I want my Java code to control my C code remotely or something like that.

我不知道我需要这种交互什么样的图书馆,我希望AP preciate任何想法。

I have no idea what kind of libraries I need for this kind of interaction and I would appreciate any ideas.

推荐答案

正如你可以控制你的树莓派与网络接口,如webiopi或web2py的,为什么不使用REST API从Android应用程序。

As you can control your Raspberry Pi with web interfaces like webiopi or web2py, why not use REST API from your Android application.

REST API客户端库为Android

REST的API服务

如果您正在寻找更多的想法,你可能会考虑与Android客户端的蓝牙客户端服务器应用程序(器件)和Java / Python的服务器(在PI运行)

If you are looking for more ideas you may consider Bluetooth client server application with an Android client (on device) and Java/Python server (running on the pi)

<一个href="http://stackoverflow.com/questions/10922319/initializing-bluetooth-connection-androidclient-to-pythonserver-on-pc">Initializing蓝牙连接的Andr​​oid(客户端)到Python(服务器)上的PC

这篇关于如何interract Android应用程序与树莓派......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆