如何通过我的程序通过蓝牙发送文件? [英] how to sent a file via bluetooth through my program?

查看:119
本文介绍了如何通过我的程序通过蓝牙发送文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有专家

我是一个初学者,我想知道

如何通过我的程序通过蓝牙发送文件?

我有一个文本文件,该文件是由我的程序生成的,我想通过蓝牙将其发送到手机

,我也希望我的程序在这2种情况下给我一条消息

1-如果计算机中没有蓝牙

2-如果在附近找不到蓝牙设备

请帮助我,并且像我对您所说的,仍然是初学者

 

 

推荐答案

您对蓝牙不感兴趣.您对通过蓝牙连接的设备感兴趣.例如,该设备是大容量存储设备吗?如果是这样,那么当它连接时将有一个驱动器号,您将 通过将文件保存到该驱动器上的文件夹来将文件发送"到设备.如果该设备作为Windows Mobile设备连接,则可以使用Windows Mobile中提供的功能将数据传输到该设备.蓝牙只是连接, 并且对您的代码没有什么比将磁盘驱动器连接至主板的电缆重要的了.
You are not interested in BlueTooth as such.  You are interested in the device that is connected by BlueTooth.  For instance, is the device a mass stoerage device?  If so, then when it is connected it will have a drive letter and you will 'send' a file to the device by saving the file to a folder on that drive.  If the device connects as a Windows Mobile device, then you could use the facilities provided in Windows Mobile to transfer data to it.   BlueTooth is just the connection, and is no more significant to your code than the cable that connects your disk drive to your motherboard.


这篇关于如何通过我的程序通过蓝牙发送文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆