开发者

CommportIdentifier in android

开发者 https://www.devze.com 2023-04-09 03:09 出处:网络
We are trying to establish an flow Control from android device to Bluetooth Thermal Printer for that we need to understand the xon and xoff signal sent by printer. We are stuck at getportIdentifier(\"

We are trying to establish an flow Control from android device to Bluetooth Thermal Printer for that we need to understand the xon and xoff signal sent by printer. We are stuck at getportIdentifier("COM1") its giving exception . Iguess the com1 for开发者_Go百科 bluetooth device is uuid but its not helping. Any help so that we could trace the port for android device.

Regards, Sebs


You are using the JavaComm interface: this does not exist on Android at all, so you will not be able to use that particular semantics. If this is a Bluetooth serial device you will need to specify the device's Bluetooth MAC address and use the RFCOMM UUID, as shown here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号