Hi, Devs,

 

I should build the app in unsecured mode, since the command I used is scons 
SECURED=0 TARGET_TRANSPORT=IP WITH_TCP=1

 

The server I compiled in arm ARCH and the client is in linux ARCH.

 

Will this cause the issue that client can’t find any resources created by 
server?

 

The log of client is attached here.

 

Thanks

 

Jason Sun

 

 

发件人: Philippe Coval [mailto:[email protected]] 
发送时间: 2017年9月1日 17:09
收件人: sunlf; 'iotivity-dev'
主题: Re: [dev] One question about client finding resouces

 

On 01/09/17 09:04, sunlf wrote:



Hi Devs

 

I met a problem while coding OCF app.

 

I created resources using C language with attached file  Server.c          . 
But, I can’t find the resource created by Server with C++ code with attached 
file Client.cpp. 

 

If I using C++ language to write the Server and create resource with API 
OCPlatform::registerResource, I can find the resource.

 

Could you explain this?

 

Thanks

 

Jason Sun

 

Hi,

I assume you're building in secured mode ? arent you ?

So you're hit by this bug about c++ examples:
https://jira.iotivity.org/browse/IOT-2443
see patches under review to sort out.





-- 
mailto:[email protected] gpg:0x467094BC
https://blogs.s-osg.org/author/pcoval/
 
In foundResource
Found resource f1a098c6-262f-4b13-8b2f-a171908c1872/oic/p for the first time on 
server with ID: f1a098c6-262f-4b13-8b2f-a171908c1872
DISCOVERED Resource:
        URI of the resource: /oic/p
        Host address of the resource: 
coap://[fe80::9164:27ac:1edc:108a%25wlan0]:46320
        List of resource types: 
                oic.wk.p
        List of resource interfaces: 
                oic.if.baseline
                oic.if.r
In foundResource
Found resource f1a098c6-262f-4b13-8b2f-a171908c1872/oic/d for the first time on 
server with ID: f1a098c6-262f-4b13-8b2f-a171908c1872
DISCOVERED Resource:
        URI of the resource: /oic/d
        Host address of the resource: 
coap://[fe80::9164:27ac:1edc:108a%25wlan0]:46320
        List of resource types: 
                oic.wk.d
        List of resource interfaces: 
                oic.if.baseline
                oic.if.r
In foundResource
Found resource f1a098c6-262f-4b13-8b2f-a171908c1872/oic/sec/pstat for the first 
time on server with ID: f1a098c6-262f-4b13-8b2f-a171908c1872
DISCOVERED Resource:
        URI of the resource: /oic/sec/pstat
        Host address of the resource: 
coap://[fe80::9164:27ac:1edc:108a%25wlan0]:46320
        List of resource types: 
                oic.r.pstat
        List of resource interfaces: 
                oic.if.baseline
In foundResource
Found resource f1a098c6-262f-4b13-8b2f-a171908c1872/oic/sec/doxm for the first 
time on server with ID: f1a098c6-262f-4b13-8b2f-a171908c1872
DISCOVERED Resource:
        URI of the resource: /oic/sec/doxm
        Host address of the resource: 
coap://[fe80::9164:27ac:1edc:108a%25wlan0]:46320
        List of resource types: 
                oic.r.doxm
        List of resource interfaces: 
                oic.if.baseline
In foundResource
Found resource f1a098c6-262f-4b13-8b2f-a171908c1872/oic/p again!
DISCOVERED Resource:
        URI of the resource: /oic/p
        Host address of the resource: 
coap://[fe80::9164:27ac:1edc:108a%25wlan0]:46320
        List of resource types: 
                oic.wk.p
        List of resource interfaces: 
                oic.if.baseline
                oic.if.r
In foundResource
Found resource f1a098c6-262f-4b13-8b2f-a171908c1872/oic/d again!
DISCOVERED Resource:
        URI of the resource: /oic/d
        Host address of the resource: 
coap://[fe80::9164:27ac:1edc:108a%25wlan0]:46320
        List of resource types: 
                oic.wk.d
        List of resource interfaces: 
                oic.if.baseline
                oic.if.r
In foundResource
Found resource f1a098c6-262f-4b13-8b2f-a171908c1872/oic/sec/pstat again!
DISCOVERED Resource:
        URI of the resource: /oic/sec/pstat
        Host address of the resource: 
coap://[fe80::9164:27ac:1edc:108a%25wlan0]:46320
        List of resource types: 
                oic.r.pstat
        List of resource interfaces: 
                oic.if.baseline
In foundResource
Found resource f1a098c6-262f-4b13-8b2f-a171908c1872/oic/sec/doxm again!
DISCOVERED Resource:
        URI of the resource: /oic/sec/doxm
        Host address of the resource: 
coap://[fe80::9164:27ac:1edc:108a%25wlan0]:46320
        List of resource types: 
                oic.r.doxm
        List of resource interfaces: 
                oic.if.baseline

_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to