繁体   English   中英

如何在C#中通过蓝牙向手机发送链接消息

[英]How to send a link message to mobile via bluetooth in C#

我的要求是通过C#中的蓝牙将链接消息发送到手机。 该消息应包含一些超链接。 当用户打开消息时,应该直接在浏览器中打开链接。

它应该可以正常运行,而无需在移动设备上安装任何其他应用程序。

我不确定这是否可能。 通常,浏览器中有一些安全预防措施,因此自动启动可能会有一些限制。

据我所知,URL检测和电子邮件地址检测是由设备自动完成的。 因此,您无需担心消息的内容。

http://www.programmersheaven.com/2/Transferring-Files-and-Monitoring-Bluetooth-Ports

我建议我的库32feet.NET在.NET上提供蓝牙和OBEX支持。 您可以轻松地通过OBEX发送文件/对象,例如

' The host part of the URI is the device address, e.g. IrDAAddress.ToString(),
' and the file part is the OBEX object name.
Dim addr As String = "112233445566"
Dim uri As New Uri("obex://" & addr & "/HelloWorld.txt")
Dim req As New ObexWebRequest(uri)
req.ReadFile("Hello World.txt")
Dim rsp As ObexWebResponse = CType(req.GetResponse(),ObexWebResponse)
Console.WriteLine("Response Code: {0} (0x{0:X})", rsp.StatusCode)

请参阅《 用户指南》http://32feet.codeplex.com/

我不知道消息中的链接。 我想如果您发送便笺,则超链接将被识别,用户可以单击它。

暂无
暂无

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

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