21 #ifndef PT_API_VERSION 22 #define PT_API_VERSION 2 24 #if PT_API_VERSION != 2 25 #error "Including mixed versions of Protocol API" 28 #ifndef PT_DEVICES_API_H 29 #define PT_DEVICES_API_H 54 typedef void (*
pt_devices_cb)(connection_id_t connection_id,
void *userdata);
void(* pt_devices_cb)(connection_id_t connection_id, void *userdata)
A function prototype for calling the client code when devices operation (for example: write...
Definition: pt_devices_api.h:54
Contains common structures and definitions for the protocol translator client.
pt_status_t pt_devices_register_devices(const connection_id_t connection_id, pt_devices_cb devices_registration_success, pt_devices_cb devices_registration_failure, void *userdata)
registers the devices that haven't been registered yet.
pt_status_t pt_devices_update(const connection_id_t connection_id, pt_devices_cb success_handler, pt_devices_cb failure_handler, void *userdata)
Updates the changed object structure from the endpoint device to Edge Core.
pt_status_t pt_devices_unregister_devices(const connection_id_t connection_id, pt_devices_cb devices_unregistration_success, pt_devices_cb devices_unregistration_failure, void *userdata)
Unregisters all the registered devices.