简体   繁体   English

通过蓝牙将 GPS 数据从 Flutter 应用程序发送到 arduino

[英]Sending gps data from Flutter app to arduino via Bluetooth

Is there anyway to send data from my flutter app to arduino.反正有没有将数据从我的颤振应用程序发送到 arduino。 I have read through the documentation of flutter blue and flutter bluetooth serial and I can't seem to find any information relating to that.我已经通读了 flutter blue 和 flutter bluetooth serial 的文档,但似乎找不到任何与此相关的信息。

It is of course possible.这当然是可能的。 You need a client-server or master-slave implementation.您需要客户端-服务器或主从实现。 I am assuming that you want to use Bluetooth LE.我假设您想使用蓝牙 LE。 You have to make sure that a script is running on the Arduino which receives the Bluetooth data and reacts accordingly.您必须确保脚本正在 Arduino 上运行,该脚本接收蓝牙数据并做出相应的反应。 Take a look at the following tutorial: How to communicate through BLE using Flutter and look at the Bluetooth LE protocol.看看下面的教程:如何使用 Flutter 通过 BLE 进行通信,看看蓝牙 LE 协议。 I recommend the BLE Scanner App from Google Play to test a BLE connection.我推荐使用 Google Play 的 BLE Scanner App 来测试 BLE 连接。 Then you can see a lot information like BLE Services, Characteristics and stuff like that you need to work with BLE.然后,您可以看到很多信息,例如 BLE 服务、特征以及使用 BLE 所需的类似内容。

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

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