Great thanks

 

Jason Sun

 

发件人: Tonny Tzeng [mailto:[email protected]] 
发送时间: 2017年8月4日 17:27
收件人: sunlf
抄送: iotivity-dev
主题: Re: [dev] One question about resource interface name

 

You may reference section 7.6 in the OCF Core specification [1] for detailed 
description. Basically, OC_RSRVD_INTERFACE_DEFAULT is the default reserved 
interface name "oic.if.baseline", "core.rw" is just an example used in the 
sample code. You definitely could use your own "vendor-defined Interface" 
according to the spec, and property values are case sensitive. FYI.

 

[1] https://openconnectivity.org/specs/OCF_Core_Specification_v1.0.0.pdf

 

Best Regards,

Tonny

 

On 4 August 2017 at 17:00, sunlf <[email protected]> wrote:

Hi, IoT devs,

 

I have one question about interface name.

 

I know using OCCreateResource to create device resource. But about the 3st 
param, device interface name, what does that mean?

 

I found in sample, value OC_RSRVD_INTERFACE_DEFAULT is used and in website  the 
sample for that param is “core.rw”. What is the difference? May I set that 
param as xxx.yyy if my device is a special one? It must be downcase? 

 

Thanks

 

Jason Sun

 

 

发件人: sunlf [mailto:[email protected]] 
发送时间: 2017年8月4日 16:36
收件人: '[email protected]'
主题: Can I get examples writen in C language

 

Hi, IoT devs,

 

I’m studying writing a code for light deice, WIFI module for example.

 

Do you have examples which are written in C language? I found that most of 
examples under folder resource/examples are in C++ language.

 

Thanks

 

Jason Sun


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

 

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

Reply via email to