epptouch sdk更新,闪退修改强化

This commit is contained in:
kai
2021-06-26 22:37:40 +08:00
parent 0ab7d833a0
commit 6d1d973610
19 changed files with 268 additions and 203 deletions
+2 -3
View File
@@ -62,20 +62,19 @@
- (id)initWithApSsid:(NSString *)apSsid andApBssid:(NSString *)apBssid andApPwd:(NSString *)apPwd andAES:(ESPAES *)aes
{
self = [super init];
NSLog(@"Welcome Esptouch %@",ESPTOUCH_VERSION);
if (apSsid==nil||[apSsid isEqualToString:@""])
{
perror("ESPTouchTask initWithApSsid() apSsid shouldn't be null or empty");
return self;
}
// the apSsid should be null or empty
assert(apSsid!=nil&&![apSsid isEqualToString:@""]);
// assert(apSsid!=nil&&![apSsid isEqualToString:@""]);
if (apPwd == nil)
{
apPwd = @"";
}
self = [super init];
if (self)
{
if (DEBUG_ON)