Dear all:
             I want use OIC RAE Server and RAE Client via Openfire (an XMPP 
Server implements by Java) as a remote XMPP Server,  Serval hours has gone but 
got any farther!
I use the sample ocserver/ocremoteaccessclient 
(resource\csdk\stack\samples\linux\SimpleClientServer\) with some account below:
------------------------------------------------------------------------------------------------------------------------
ccremoteaccessclient.cpp                                                        
                 ocserver.cpp
#ifdef RA_ADAPTER                                                               
                     #ifdef RA_ADAPTER
    char host[] = "172.16.xxx.88";                                              
               char host[] = "172.16.xxx.88";
    char user[] = "user1";                                                      
                       char user[] = "user2";
    char pass[] = "xxx123";                                                     
                      char pass[] = "xxx123";
    char empstr[] = "";                                                         
                          char empstr[] = "";
  ?                                                                             
                                          ?
rainfo.port = 5222;                                                             
                          rainfo.port = 5222;
#endif                                                                          
                                     #endif
------------------------------------------------------------------------------------------------------------------------
XMPP Server (Openfire) IP: 172.16.xxx.88   port:5222   security(SSL/TLS) 
port:5223
------------------------------------------------------------------------------------------------------------------------

1.       Run  ./ocremoteaccessclient -t 1 -u user1 -d 172.16. xxx.88 -w xxx123 
-s 172.16. xxx.88
Then I set JID of remote server:      user1 at 
172.16.182.88/OIC/1.0/a/fan<mailto:user1 at 172.16.182.88/OIC/1.0/a/fan>
ocremoteaccessclient waiting now:
 INFO: occlient_remoteaccess: Press CTRL+C to stop the stack
2. Run  ./ocserver -o 1 -u user2 -d 172.16. xxx.88 -w xxx123 -s 172.16. xxx.88
Ocserver log below:
06:23.000 DEBUG: ocserver: OCServer is starting...
06:23.004 INFO: ocserver: Created Light resource with result: OC_STACK_OK
06:23.004 INFO: ocserver: Entering ocserver main loop...
06:23.008 INFO: ocserver: Will send out presence in 10 seconds
06:34.008 INFO: ocserver: Created /a/fan for presence notification
06:35.008 INFO: ocserver: Created /a/led for presence notification
06:40.008 INFO: ocserver: Deleted /a/fan for presence notification
06:40.008 INFO: ocserver: Deleted /a/led for presence notification
06:40.008 INFO: ocserver: ================ stopping presence
Finally ,I Can?t see any result about the OIC client and server via Openfire 
send message, What should I do ?
Does Iotivity support XMPP work well ?
Thanks!
Zhaoyan Zhang
Intel OTC OIC development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160129/fb86d34c/attachment.html>

Reply via email to