Function anjay_sw_mgmt_install
Defined in File sw_mgmt.h
Function Documentation
-
int anjay_sw_mgmt_install(anjay_t *anjay, const anjay_sw_mgmt_settings_t *settings)
Installs the Software Management object in an Anjay object.
The Software Management module does not require explicit cleanup; all resources will be automatically freed up during the call to anjay_delete.
Specific instances of Software Management object shall be created using anjay_sw_mgmt_add_instance . It is desirable to create all instances expected by the server before the first call to anjay_event_loop_run , anjay_serve or anjay_sched_run , to make sure that they are present from the beginning of the device registration.
- Parameters:
anjay – Anjay object for which the Software Management Object is installed.
settings – Configuration of Software Management module, see anjay_sw_mgmt_settings_t for details.
- Returns:
0 on success, or a negative value in case of error.