收藏官网首页
查看: 3660|回复: 0

iOS SDK 2.0文档 8-新旧SDK兼容手册

562

主题

1222

帖子

8133

积分

版主

Rank: 7Rank: 7Rank: 7

积分
8133
跳转到指定楼层
楼主
发表于 2016-7-7 16:43:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
免费使用STM32、APP自动代码生成工具
1.        兼容目的        由机智云品牌规范要求,2.0 SDK的类名前缀由XPG变更为Giz,因此APP需要相应修改类名前缀。
2. 兼容方法
  • 把所有已废弃接口,替换成1.6.2 SDK的最新接口
  • 把App工程中的SDK,更换成2.00.00 SDK
  • 把类名中的XPG前缀改为Giz


以下表格列出了所有需要变更类名的接口:
【GizWifiSDK】
- (void)XPGWifiSDKXPGWifiSDK *)wifiSDK   didSetDeviceWifiXPGWifiDevice *)device resultint)result   DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDKGizWifiSDK *)wifiSDK didSetDeviceWifiGizWifiDevice   *)device resultint)result;
- (void)XPGWifiSDKXPGWifiSDK *)wifiSDK didGetSSIDListNSArray   *)ssidList resultint)result;
- (void)XPGWifiSDKGizWifiSDK *)wifiSDK didGetSSIDList:(NSArray   *)ssidList result:(int)result   DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDK:(XPGWifiSDK   *)wifiSDK didDiscovered:(NSArray *)deviceList result:(int)result;
- (void)XPGWifiSDK:(GizWifiSDK   *)wifiSDK didDiscovered:(NSArray *)deviceList result:(int)result   DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDK:(XPGWifiSDK   *)wifiSDK didUpdateProduct:(NSString *)product result:(int)result;
- (void)XPGWifiSDK:(GizWifiSDK   *)wifiSDK didUpdateProduct:(NSString *)product result:(int)result   DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDK:(XPGWifiSDK   *)wifiSDK didBindDevice:(NSString *)did error:(NSNumber *)error   errorMessage:(NSString *)errorMessage;
- (void)XPGWifiSDK:(GizWifiSDK   *)wifiSDK didBindDevice:(NSString *)did error:(NSNumber *)error   errorMessage:(NSString *)errorMessage DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDK:(XPGWifiSDK   *)wifiSDK didUnbindDevice:(NSString *)did error:(NSNumber *)error   errorMessage:(NSString *)errorMessage;
- (void)XPGWifiSDK:(GizWifiSDK   *)wifiSDK didUnbindDevice:(NSString *)did error:(NSNumber *)error   errorMessage:(NSString *)errorMessage DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDK:(XPGWifiSDK *)wifiSDK didRegisterUser:(NSNumber   *)error errorMessage:(NSString *)errorMessage uid:(NSString   *)uid token:(NSString *)token;
- (void)XPGWifiSDK:(GizWifiSDK *)wifiSDK didRegisterUser:(NSNumber   *)error errorMessage:(NSString *)errorMessage uid:(NSString   *)uid token:(NSString *)token   DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDK:(XPGWifiSDK   *)wifiSDK didUserLogin:(NSNumber *)error errorMessage:(NSString   *)errorMessage uid:(NSString *)uid token:(NSString   *)token;;
- (void)XPGWifiSDK:(GizWifiSDK *)wifiSDK didUserLogin:(NSNumber   *)error errorMessage:(NSString *)errorMessage uid:(NSString   *)uid token:(NSString *)token DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDK:(XPGWifiSDK   *)wifiSDK didUserLogout:(NSNumber *)error errorMessage:(NSString   *)errorMessage;
- (void)XPGWifiSDK:(GizWifiSDK *)wifiSDK didUserLogout:(NSNumber *)error   errorMessage:(NSString *)errorMessage DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDK:(XPGWifiSDK   *)wifiSDK didChangeUserPassword:(NSNumber *)error errorMessage:(NSString   *)errorMessage;
- (void)XPGWifiSDK:(GizWifiSDK *)wifiSDK didChangeUserPassword:(NSNumber   *)error errorMessage:(NSString *)errorMessage DEPRECATED_ATTRIBUTE;
- (void)XPGWifiSDK:(XPGWifiSDK   *)wifiSDK didGetGroups:(NSArray *)groupList result:(int)result;
- (void)XPGWifiSDK:(GizWifiSDK   *)wifiSDK didGetGroups:(NSArray *)groupList result:(int)result   DEPRECATED_ATTRIBUTE;
【GizWifiDevice】
- (void)XPGWifiDevice:(XPGWifiDevice   *)device didQueryHardwareInfo:(NSDictionary *)hwInfo;
-   (void)XPGWifiDevice:(GizWifiDevice *)device   didQueryHardwareInfo:(NSDictionary *)hwInfo DEPRECATED_ATTRIBUTE;
- (void)XPGWifiDevice:(XPGWifiDevice   *)device didDeviceIsOnline:(BOOL)isOnline;
-   (void)XPGWifiDevice:(GizWifiDevice *)device didDeviceIsOnline:(BOOL)isOnline   DEPRECATED_ATTRIBUTE;
- (void)XPGWifiDevice:(XPGWifiDevice   *)device didLogin:(int)result;
- (void)XPGWifiDevice:(GizWifiDevice *)device didLogin:(int)result DEPRECATED_ATTRIBUTE;
- (void)XPGWifiDeviceDidDisconnected: (XPGWifiDevice *)device result:(int)result;
- (void)XPGWifiDeviceDidDisconnected:   (GizWifiDevice *)device result:(int)result DEPRECATED_ATTRIBUTE;
- (void)XPGWifiDevice:(XPGWifiDevice   *)device didReceiveData:(NSDictionary *)data result:(int)result;
- (void)XPGWifiDevice:(GizWifiDevice *)device didReceiveData:(NSDictionary   *)data result:(int)result DEPRECATED_ATTRIBUTE;
【GizWifiCentralControlDevice】
- (void)XPGWifiCentralControlDevice: (XPGWifiCentralControlDevice *)wifiCentralControlDevice didDiscovered:(NSArray *)subDeviceList result:(int)result;
-   (void)XPGWifiCentralControlDevice: (GizWifiCentralControlDevice   *)wifiCentralControlDevice didDiscovered:(NSArray *)subDeviceList   result:(int)result DEPRECATED_ATTRIBUTE;
【GizWifiGroup】
- (void)XPGWifiGroup:(XPGWifiGroup   *)group didGetDevices:(NSArray *)deviceList result:(int)result;
- (void)XPGWifiGroup:(GizWifiGroup   *)group didGetDevices:(NSArray *)deviceList result:(int)result   DEPRECATED_ATTRIBUTE;
【GizWifiBinary】
XPGWifiBinary
GizWifiBinary

1、机智云QQ群: 287087942
机智云爱好者-APP开发群: 599735135
QQ群目前非常活跃,欢迎大家参与进来,交流,讨论,答疑,解惑~~
2、机智云微信公众号: 机智云 gizwits /   机智云智能宠物屋go-kit
关注机智云Gizwits官方公众号随时掌握最新资讯和活动信息
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

版权与免责声明 © 2006-2024 Gizwits IoT Technology Co., Ltd. ( 粤ICP备11090211号 )

快速回复 返回顶部 返回列表