c#读蓝牙数据_通过蓝牙接收数据到c#程序

我正在使用TheHand库(32feet.NET) .

我有一个启用蓝牙的设备,我想将设备连接到我的计算机,然后将数据从设备发送到计算机 . 然后我想用我的程序捕获这些信息并进行处理 . 设备将发送3个变量(全部3个浮点数) .

我如何用蓝牙捕获这些信息?我之前从未在电脑上使用蓝牙 .

但是不知道我在做什么,所以我不能让它发挥作用 .

我正在使用Visual Studio 2017和Windows 10.我听说Windows 10存在问题并对蓝牙设备进行身份验证 .

感谢您的帮助!

更新:

static string domaciaddress = "MY_ADDRESS";

static string tujadress = "DEVICE_ADDRESS";

//reciever

private static BluetoothEndPoint EP = new BluetoothEndPoint(BluetoothAddress.Parse(domaciaddress), BluetoothService.BluetoothBase);

private static BluetoothClient BC = new BluetoothClient(EP);

//sender

private static BluetoothDeviceInfo BTDevice = new BluetoothDeviceInfo(BluetoothAddress.Parse(tujadress));

private static NetworkStream stream = null;

static void neke231(string[] args)

{

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值