20221201_PLFB_upperpc/ZTTMS_Manage_ZDPLFZ_20230214_now/新建文本文档.txt

13 lines
613 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

if (Others.g_connectState[Others.blueDeviceId] == true)
//通过蓝牙名称找到对应的连接
Others.g_blueClients[Others.blueDeviceId].GetStream().Write(buffer.ToArray(),0,buffer.Count);
if (Others.g_blueDeviceAddresses.ContainsKey(Others.g_blueDevicesNames[Others.blueDeviceId]))
{
Others.g_blueClients[Others.blueDeviceId] = null;
Others.g_blueDeviceAddresses.Remove(Others.g_blueDevicesNames[Others.blueDeviceId]);
}
Others.g_connectState[Others.blueDeviceId] = false;
Console.WriteLine("ReturnSyncTimeError" + Others.g_blueDevicesNames[Others.blueDeviceId] + "连接已断开!\r" + DateTime.Now);