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); }
private byte[] WriteBTAddress(string address) { ZTEFactoryTool zTEFactoryTool = new ZTEFactoryTool(); zTEFactoryTool.WriteBTAddress(address); return new byte[] { 0x00 }; }