示例#1
0
文件: BT.cs 项目: hackestyy/study
        public void Write(object param)
        {
            var obj=param as string;
            if (obj == null)
            {
                throw new InvalidCastException("param is not type of string!");
            }

            //TODO:add write address here
            ZTEFactoryTool zTEFactoryTool = new ZTEFactoryTool();
            zTEFactoryTool.WriteBTAddress(obj);
        }
示例#2
0
 private byte[] WriteBTAddress(string address)
 {
     ZTEFactoryTool zTEFactoryTool = new ZTEFactoryTool();
     zTEFactoryTool.WriteBTAddress(address);
     return new byte[] { 0x00 };
 }