[英]How to Connect and Send Data using bluetooth c# Xamarin?
我已经能够找到设备并几乎连接到它们,我确定连接按钮正在工作,但是其他设备没有正确应答,所以它没有连接我需要帮助...并且在它们连接后我需要通过蓝牙发送一个zip文件,我真的不知道该怎么做。
这是我的代码
这是我正在使用的blueToothChatService类
如果有人已经做了这个或有任何样品来帮助我,我会非常感激我的大脑正在融化... -.-
谢谢
我最近在Xamarin Android上做了一些蓝牙工作,发现以下源代码非常有帮助。
https://developer.xamarin.com/samples/monodroid/BluetoothChat/
...
来自知道自己在做什么的人 - 尼斯文章:Peter Leow
BluetoothServerSocket bluetoothServerSocket = bluetoothAdapter.listenUsingRfcommWithServiceRecord(getString(R.string.app_name), uuid);
private final static UUID uuid = UUID.fromString("fc5ffc49-00e3-4c8b-9cf1-6b72aad1001a");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.