OS-IoT
|
This library allows an IoT client to interact with resources stored on a oneM2M Infrastructure Node (IN) or Mobile Node (MN) via the oneM2M protocol. For general information about OS-IoT refer to http://os-iot.org/. For a practical introduction to oneM2M concepts and procedures see the oneM2M Developers Guide http://onem2m.org/application-developer-guide/welcome.
This detailed API specification should be read in conjunction with the OS-IoT Manual which is available from the OS-IoT web site.
The public interface to the library is contained in the namespace onem2m.
Functions to support oneM2M network operations are documented in the onem2m functions.
The oneM2M resource object library is documented in the onem2m classes. Note in paricular the special handling for optional and sequence elements. For the semantics and structure of oneM2M resource objects refer to the oneM2M specifications. For information about the supported resource fields refer to the OS-IoT Manual.
To use the library, the application should follow the following steps:
Refer to the file osiotcmd.cxx for an example command-line application that demonstrates this use of the API and also how to interact with oneM2M resource objects. A further example application and a guide to how to build your own applications are available on the OS-IoT web site.
Note that the function onem2m::send() is a low level routine and should only be used by advanced applications that need to interact with the oneM2M signalling at a finer level of granularity than is possible with the high level routines.