OS-IoT C API
|
This library allows a lightweight IoT client on the Quectel BG96 cellular module 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 library supports JSON encoded oneM2M resources transported over HTTP(S). The library contains a communications interface (onem2m_http.h) and a set of functions for manipulating oneM2M resource models (onem2m_resource.h and onem2m_resource_models.h). The library is built using the QAPI HTTP API and generally follows the structure of that API. A slightly modified version of the Parson library (https://github.com/kgabis/parson) is used for support of JSON. Some datatypes from the QAPI and Parson are exposed to library users.
The following resource types are currently supported: CSE-Base, AE, Container and ContentInstance.
The library is developed for the BG96 running ThreadX version 3 RTOS to run locally on the module using the QAPI. It may be built using the CLANG/LLVM SDK. The SDK may be obtained from Quectel.
Incorporate the following .c and .h files in your application source: onem2m_http, onem2m_resource, onem2m_resource_models, parson
To use the library, the application should follow the following steps:
Limitations: