Struct anj_dm_device_object_init_t

Struct Documentation

struct anj_dm_device_object_init_t

Device Object initialization structure. Should be filled before passing to anj_dm_device_obj_install.

Note

Supported Binding and Modes Resource (/3/0/16) is defined by ANJ_SUPPORTED_BINDING_MODES.

Warning

Strings passed to this structure are not copied internally when anj_dm_device_obj_install is called. The user must ensure that they remain valid for the entire lifetime of anj_t object or until the Object is removed using anj_dm_remove_obj.

Public Members

const char *manufacturer

Manufacturer Resource (/3/0/0) value.

const char *model_number

Model Number Resource (/3/0/1) value.

const char *serial_number

Serial Number Resource (/3/0/2) value.

const char *firmware_version

Firmware Version Resource (/3/0/3) value.

const char *software_version

Software Version Resource (/3/0/19) value.

anj_dm_reboot_callback_t *reboot_cb

Reboot Resource (/3/0/4) callback.

Note

If not set, Execute operation on this resource will fail.

void *reboot_cb_arg

Argument passed to reboot_cb when it is invoked.