简体   繁体   English

如何将数据从Raspberry Pi设置/获取到服务器

[英]how set/get data from Raspberry Pi to server

HIHello everyone I have a Raspberry Pi that contain some data, on another side, I have a server with a server, also there is a webpage connecting with the same server. 嗨,大家好,我有一台Raspberry Pi,其中包含一些数据,另一方面,我有一台服务器和一台服务器,还有一个与该服务器连接的网页。 what do I need? 我需要什么? 1- the Raspberry Pi must send its data to a server 2-if the user set some data to the database by webpage the Raspberry Pi must get this data 3-Raspberry Pi must listen to the database to know if there is an update or not. 1- Raspberry Pi必须将其数据发送到服务器2-如果用户通过网页将一些数据设置到数据库,则Raspberry Pi必须获取此数据3-Raspberry Pi必须侦听数据库以了解是否有更新。 what the best way to do these points, is there any protocol for IoT can do these? 做到这些点的最佳方法是什么,物联网有没有协议可以做到这些? I need any hint :) thank u for all. 我需要任何提示:)谢谢大家。

Try connecting your RPi with your server through any means of local area connection, it could be a connection through a wifi network or using a lan cable or even through serial ports. 尝试通过任何局域网连接方式将RPi与服务器连接,它可以是通过wifi网络或使用lan电缆甚至是串行端口的连接。 If successful in this attempt then you can access disk drive folders inside the server. 如果尝试成功,则可以访问服务器内部的磁盘驱动器文件夹。 In the webpage running on server ,make it listen for certain values and write the status to a text file or an database. 在服务器上运行的网页中,使其侦听某些值并将状态写入文本文件或数据库。 Then make RPi to continuously monitor those file for data updation and make it work according to it. 然后使RPi连续监视那些文件以进行数据更新,并使其根据其工作。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM