简体   繁体   English

使用C#进行蓝牙通信

[英]Bluetooth communications with C#

I want to write 2 programs with C# one work on PC, the other work on a windows mobile phone. 我想用C#编写2个程序,一个在PC上工作,另一个在Windows手机上工作。

So I want the PC program to send a signal via Bluetooth ( 1 byte maybe) to the windows mobile phone. 所以我希望PC程序通过蓝牙(可能是1个字节)向windows手机发送信号。 and the mobile program (which work on background) handles and accepts this byte without the need of pairing. 并且移动程序(在后台工作)处理并接受该字节而无需配对。

how to code this? 怎么编码呢?

please I need any kind of help. 我需要任何帮助。

My library 32feet.NET should be useful... 我的库32feet.NET应该很有用......

Device Discovery can be done with BluetoothClient.DiscoverDevices, and sending data should be done with classes BluetoothClient and BluetoothListener, see the User Guide for more info. 设备发现可以使用BluetoothClient.DiscoverDevices完成,发送数据应该使用BluetoothClient和BluetoothListener类完成,有关详细信息,请参阅“ 用户指南”

如果您的手机可以使用串行蓝牙适配器(RFCOMM),您可以使用串行类发送它。

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

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