简体   繁体   English

通过Wifi将数据从Android App发送到Raspberry Pi

[英]Sending data over Wifi from Android App to Raspberry Pi

I'm trying to create an Android app that can send a confirmation message, either a string or an encrypted signal, over WiFi to my raspberry pi connected to the same WiFi network. 我正在尝试创建一个Android应用程序,该应用程序可以通过WiFi向连接到相同WiFi网络的树莓派发送确认消息(字符串或加密信号)。 How can I achieve this task? 我该如何完成这项任务?

The raspberry pi is running on raspbian. 树莓派在树莓派上运行。 Do I need to code a separate app on the pi to receive the message? 我是否需要在pi上编写单独的应用程序才能接收消息?

  1. How do you connect to your RaspberryPI? 您如何连接到RaspberryPI? Does it have static IP? 它有静态IP吗?
  2. You need kind of server on RaspberryPI which can listen what your Android device sends (I suggest you simple NodeJS server, easy to install, work, modify). 您需要在RaspberryPI上使用某种服务器,该服务器可以侦听Android设备发送的内容(我建议您使用简单的NodeJS服务器,易于安装,工作,修改)。

PS: provide more details and I can give you some suggestions, a month ago I did a project where connected Android app with RaspberryPI through Firebase. PS:提供更多详细信息,我可以给您一些建议,一个月前,我做了一个项目,通过Firebase将Android应用程序与RaspberryPI连接起来。

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

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