Hi everyone,


I have a question on how cloud RD service behave when a GET /oic/res is
received. 



If there are resources of rt=core.light published to RD, and the following
request is made

GET /oic/res?rt=core.light

This should be asking the server if there are resources of type core.light

I get a device list if there is any published on RD service. 

This make sense.



When I send request as follow

GET /oic.res?rt=oic.wk.rd or GET /oic.res?rt=oic.wk.rdpub

I should be asking if there is resources of type oic.wk.rd, oic.wk.rdpub

If the server has a resource of that type, I suppose I get a response with
payload like 

di : ODlkODc1NTgtNjZhYS00NDNhLTk2MTctYWIzMGQ0ZA==

links :

href : /[hostAddress]/oic/rd

rt : oic.wk.rd

if : oic.if.baseline

which tells me that this server does support RD service (as a resource)



But what actually happens is that Interface Server ask Account Server for a
device list of that session. Then return an empty payload to me {[]},

Since there is no resources of rt=oic.wk.rd was found on Account Server
database ACCOUNTSERVER_DB.

This doesn't seem logically consistent.



This only make sense if the resource in Cloud server source code
resourceManager.registerResource() does not mean OIC resource.

And there is no way to discover that if the Server support /oic/rd, is that
correct?



Best Regards,

Maxi Wu

maxi.wu at u-media.com.tw

tel: +886 3 579 7969 ext 8319



-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160718/ddc46863/attachment.html>

Reply via email to