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

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

问题描述

我可以使用 Python 或 Wiring-PI C 库对我的 Raspberry PI 进行编程以控制其 GPIO.我可以使用 web 界面来控制它,比如 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.

我打算做的是编写我自己的 android 应用程序(仅由我创建的布局)并希望该应用程序远程访问 PI 并运行为 GPIO 控制存储的代码.

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 代码能够远程控制我的 C 代码或类似的东西.

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

我不知道这种交互需要什么样的库,如果有任何想法,我将不胜感激.

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

推荐答案

既然您可以使用 webiopi 或 web2py 等 Web 界面控制您的 Raspberry Pi,为什么不从您的 Android 应用程序中使用 REST API.

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

Android REST API 客户端库

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

初始化蓝牙连接android(客户端)到python(服务器)上电脑

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

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