I'm re-posting George's email under a different title so folks can find it.  
The "Where are the devs" thread has gotten really overloaded when it was just 
meant to be a physical location survey I think :)

"As Thiago said most of our examples are a hybrid of an example and a unit test.

There has been work to improve the examples. Rami Alshafi spent weeks working 
to get a csdk sample contributed to IoTivity.  His sample shows a server and 
client that implement the oic.r.switch.binary resource on a oic.d.switch 
device. What makes this sample really good it contains the introspection files, 
security files, and PICS files. Most of the other samples lack these files. 
This code can be found in the /examples/OCFSecure

This is probably the best documented sample with a really complete readme file 
to help get started.  It is also the sample documented here 
https://openconnectivity.org/wp-content/uploads/2017/12/OCF-IoTivity-RPi3-GSG.pdf

If you have a Rasberry Pi this can be used as an actual device. I know, not 
anywhere near a commercial solution like LIFX.

There is another sample using the cpp APIs found in 
/resources/examples/ofc_light this sample used the DeviceBuilder created by the 
dmtools task group. Currently this is only a service. It implements an 
oic.r.switch.binary and oic.r.light.dimming resource for an oic.d.light device. 
 This sample also contains introspection files, security files, and PICS files. 
The file dl_server_security.json.in is an annotated security file that explains 
each element of the security file. In my opinion it is one of the best places 
to find that information without digging through the security specification.

Both of these samples have been run against the CTT (Certification Test Tool). 
Both have readme files to help the new developer.

There has been work to improve the samples and documentation but it is a slow 
process.

I would like to improve the light sample to generate a graphical representation 
of a light.  It may not be a physical product but it is the best I can do as a 
contributor to IoTivity.

George Nash"

Reply via email to