2014-03-26 8 views
1

sup 2.1.3 (SUP 서버)을 사용하여 기본 응용 프로그램을 개발 중입니다. 하지만 sybase 컨트롤 센터에서 장치를 등록하는 동안 오류가 아래에 점점. 나는이 검색하지만 모든 솔루션을 얻지 못했습니다. 하나는 나를이 문제를 해결하는 데 도움이?SUP 오류 : 571 세부 정보 : 세션 실패 출처 : iOS

내 코드 :

SUPConnectionProfile *sp = [self.connectionProfile syncProfile]; 
     [sp setDomainName:@"default"]; 
     [sp setServerName:@"john-PC"]; 
     [sp setPortNumber:2480]; 
     [sp setNetworkProtocol:@"http,https"]; 
     [sp setNetworkStreamParams:@"trusted_certificates=;url_suffix="]; 
     [sp applyPropertiesFromApplication]; 



code for registering the device : 


@try 
{ 
SUPApplication* app = [SUPApplication getInstance]; 
[app registerApplication:120]; // here i'm increasing to 60 10 120 


    @catch (SUPApplicationTimeoutException* tex) 
    { 
     NSLog(@"SUPApplicationTimeoutException"); 
     NSLog(@"%@: %@--%@", [tex name],[tex message], [tex description]); 
     [self.loader hide:YES]; 

    } 
    @catch (SUPPersistenceException * pe) { 
     NSLog(@"SUPPersistenceException"); 
     NSLog(@"%@: %@", [pe name],[pe message]); 
     [self showNoTransportAlert:kSUP102ErrorFailure]; 
    } 
} 

오류 콘솔 :

2014-03-25 14:12:49.085 SUP102[1891:6303] ================================================= 
2014-03-25 14:12:49.085 SUP102[1891:6303] onConnectionStatusChanged: status = 105, code = 571, message = Error: 571 Detail: Session failed Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1024. 
2014-03-25 14:12:49.086 SUP102[1891:6303] ================================================= 
2014-03-25 14:12:49.087 SUP102[1891:6303] ================================================= 
2014-03-25 14:12:49.087 SUP102[1891:6303] onConnectionStatusChanged: status = 105, code = 571, message = Error: 571 Detail: Session failed Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1024. 
2014-03-25 14:12:49.087 SUP102[1891:6303] ================================================= 

답변

0

당신은 등록에 대한 표준 예 따라야합니다

SUPApplication* app = [SUPApplication getInstance]; 
[app setApplicationIdentifier:@"YOURAPPIdentifier"]; 

MyApplicationCallbackHandler *ch = [MyApplicationCallbackHandler getInstance]; 
[app setApplicationCallback:ch]; 
SUPConnectionProperties* props = app.connectionProperties; 

[props setServerName:@"supserver.mycompany.com"]; 
[props setPortNumber:5001]; // the messaging 

SUPLoginCredentials* login = [SUPLoginCredentials getInstance]; 
login.username = @"username"; 
login.password = @"password"; 
props.loginCredentials = login; 
[app registerApplication:120]; // 120 second timeout for registration 

이 프로토콜을 설정하지 마십시오을, 도메인, 네트워크 스트림 매개 변수 등 ...

+0

내 장치에서 SUP 서버 ipAddress를 연결할 수 없기 때문에 어느 해킹 문제가 해결되었습니다. –