JkWfCsXIVw xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
蓝牙自动回连的方式.
<1> 参考蓝牙断线监测的心跳线程方式。不同点在于,监测到蓝牙断线之后,调用的是连接函数进行尝试连接。若连接成功,表明可回连。此种方式消耗资源也较大。
<2> 参考打印原理中,打印方式的第二种。一般若对蓝牙自动回连有较高需求时,建议采用此种打印方式。
The method of Bluetooth automatic reconnection
1. Refer to the heartbeat daemon method of Bluetooth disconnection monitor. The difference is that the connection function is called to try the connection after the Bluetooth disconnection is monitored. If the connection is successful, it means the reconnection can be ok. The wasting resources of this method are also much.
2. Refer to the second one of printing method in printing theory. If there is high request for Bluetooth reconnection, this printing method is suggested to use.