IoTivity-Lite
|
Call back handlers that are invoked in response to oc_main_init() More...
#include <oc_api.h>
Data Fields | |
int(* | init )(void) |
Device initialization callback that is invoked to initialize the platform and device(s). More... | |
void(* | register_resources )(void) |
Resource registration callback. More... | |
void(* | requests_entry )(void) |
Callback invoked when the stack is ready to issue discovery requests. More... | |
void(* | signal_event_loop )(void) |
Function to signal the event loop so that incomming events are being processed. More... | |
Call back handlers that are invoked in response to oc_main_init()
int(* init) (void) |
Device initialization callback that is invoked to initialize the platform and device(s).
At a minimum the platform should be initialized and at least one device added.
Multiple devices can be added by making multiple calls to oc_add_device().
Other actions may be taken in the init handler
piid
(a.k.a Protocol Independent ID) oc_set_immutable_device_identifier()void(* register_resources) (void) |
Resource registration callback.
Callback is invoked after the device initialization callback.
Use this callback to add resources to the devices added during the device initialization. This where the properties and callbacks associated with the resources are typically done.
Note: Callback is only invoked when OC_SERVER macro is defined.
Example:
void(* requests_entry) (void) |
Callback invoked when the stack is ready to issue discovery requests.
Callback is invoked after the device initialization callback.
Example:
void(* signal_event_loop) (void) |
Function to signal the event loop so that incomming events are being processed.