简体   繁体   English

如何将 android 应用程序连接到树莓派,以便它将传感器的所有数据反映到 android 应用程序上

[英]How to connect android app to raspberry pi so that it will reflect all the data from sensors on to the android app

There are some sensors that will send real time data to raspberry pi.Raspberry pi will process that data and stored it into the database which is local to raspberry pi.So, is there any API that can be used to access the data from database which is stored in raspberry pi on an android app.有一些传感器会向树莓派发送实时数据。树莓派将处理该数据并将其存储到树莓派本地的数据库中。那么,是否有任何 API 可用于访问来自数据库的数据?存储在 raspberry pi 中的 android 应用程序中。 Is it possible to use PiUi or django and if not then what should i use?是否可以使用 PiUi 或 django,如果不能,我应该使用什么?

I would post/save the data sent to the rPI into a web server, then using a HTTP protocol, connect the android app to the server and download the relevant data.我会将发送到 rPI 的数据发布/保存到 Web 服务器中,然后使用 HTTP 协议,将 android 应用程序连接到服务器并下载相关数据。

But that's me, other than doing some complex things;但那是我,除了做一些复杂的事情; that's the 'easy' way to do it.这是做到这一点的“简单”方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 Android 应用程序通过蓝牙连接到 Raspberry pi - How to connect to Raspberry pi with an android app over bluetooth 将数据从我的App android发送到我的Raspberry PI 3 - Send data from my App android to my Raspberry PI 3 通过Wifi将数据从Android App发送到Raspberry Pi - Sending data over Wifi from Android App to Raspberry Pi 从Raspberry pi发送通知到Android应用 - Send notification from Raspberry pi to Android app 将视频从Raspberry Pi传输到Android应用 - Stream Video from Raspberry Pi to Android app Android app 忽略 Raspberry PI Wifi AP。如何将 Android App 连接到非 inte.net Wifi.network? - Android app ignore Raspberry PI Wifi AP.How to connect Android App to non internet Wifi network? 在raspberry pi中编译android应用程序 - Compile android app in raspberry pi 如何构建Android蓝牙服务器应用程序以处理使用pybluez从Raspberry Pi发送的数据 - How to build Android Bluetooth server app handling data sent from Raspberry Pi using pybluez 无法将Android应用连接到Raspberry Pi以控制GPIO - Can't connect Android app to Raspberry Pi to control GPIO 如何通过蓝牙将Android应用程序连接到Raspberry Pi,以发送数字文本文件? - How can I connect an Android app to Raspberry Pi, via Bluetooth, in order to send a text file of numbers?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM