简体   繁体   English

从android->服务器->另一个android实时发送数据的最佳方式

[英]best way to send data from android->server->another android in realtime

I am currently doing a project that sends sensor data from Arduino to Android(patient's app) then sends those data from android to server, then sends them to another Android(guardian's app).我目前正在做一个项目,将传感器数据从 Arduino 发送到 Android(患者的应用程序),然后将这些数据从 android 发送到服务器,然后将它们发送到另一个 Android(监护人的应用程序)。 We are using Django for backend.我们使用 Django 作为后端。

Thus, I am thinking 2 ways to send Data in real-time(every one second).因此,我正在考虑两种实时发送数据的方法(每隔一秒)。

1.Using Http Rest Api(update MySQL every second from patient's android, and get data from MySQL every second from guardian's android). 1.Using Http Rest Api(update MySQL every second from patient's android, and get data from MySQL every second from guardian's android).

2.Django channels which is good for chatting application, and our project seems pretty similar. 2.Django频道,适合聊天应用,和我们的项目看起来很相似。

I have experienced HTTP REST API before, but I am new to socket programming.我以前经历过 HTTP REST API ,但我是套接字编程的新手。 Which is better way?哪个更好? HTTP rest API vs Django channels? HTTP rest API 与 Django 通道?

Isn't Firebase Realtime Database an option for you? Firebase 实时数据库不是您的选择吗? You wouldn't have to deal with any server development.您不必处理任何服务器开发。

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

相关问题 通过Rails Server与Android App通信-将数据从应用程序发送到服务器? - Communicate to Android App via Rails Server- send data from app to server? 如何将表的特定行的完整数据发送到服务器-Android - How to send entire data of specific row of table to server- Android 从数据库向Android发送数据的最佳方法 - Best way to send data from DB to Android android-播放gif动画的最佳方法 - android- best way to play a gif animation Android-如何将数据从活动发送到服务? - Android- How to send data from activity to service? 从Android向服务器发送数据的最快方法? - Fastest Way to send Data from Android to Server? 试图找出通过Android将数据发送到服务器的最佳方法 - Trying to figure out the best way to send data to a server via android 在一次传输中将数据/文件发送到Android中服务器的最佳方法 - Best way to send data/files in one transmission to server in android 使用Java从Android向Web服务器发送和接收数据(POST和GET)的最佳方式? - Best way to send and receive data(POST and GET) from Android to web server using Java? 从服务器发送.zip到Android应用的最佳方法 - Best way to send .zips to an Android app from a server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM