设备配置流程图
2020-10-12 16:00:46 0 举报
设备配置流程图
作者其他创作
大纲/内容
第二步 AirLink
[GizWifiSDK sharedInstance].delegate = self;
第一步 设置通用委托
模组进入SoftAP模式,形成热点(此过程和SDK无关)手机连接设备热点(此过程和SDK无关)选择要配置的WIFI,开始配置:[[GizWifiSDK sharedInstance] setDeviceOnboardingDeploy:@\"your_ssid\" key:@\"your_key\" configMode:GizWifiSoftAP softAPSSIDPrefix:@\"your_gagent_hotspot_prefix\" timeout:60 wifiGAgentType:@[@(GizGAgentESP)]];实现委托函数:- (void)wifiSDK:(GizWifiSDK *)wifiSDK didSetDeviceOnboarding:(NSError *)result device:(GizWifiDevice *)device { }
第三步 SoftAP
模组进入AirLink配置模式(此过程和SDK无关)手机连接要配置的wifi,APP获取当前手机Wifi的SSID和密码(此过程和SDK无关)开始配置:[[GizWifiSDK sharedInstance] setDeviceOnboardingDeploy:@\"your_ssid\" key:@\"your_key\" configMode:GizWifiAirLink softAPSSIDPrefix:nil timeout:60 wifiGAgentType:@[@(GizGAgentESP)] ];实现委托函数:- (void)wifiSDK:(GizWifiSDK *)wifiSDK didSetDeviceOnboarding:(NSError *)result device:(GizWifiDevice *)device { }
0 条评论
下一页