随笔分类 - 51通讯
Flex接收51单片机发送过来的16进制数据转换为String
摘要:private static function toHex(bytes:ByteArray):String{var pos:int =bytes.position;bytes.position=0;var result:String="";while(bytes.bytesAvailable>=8){result+=toHexNum(bytes.readUnsignedByte())+""+toHexNum(bytes.readUnsignedByte())+""+toHexNum(bytes.readUnsignedByte(
阅读全文
浙公网安备 33010602011771号