This is the Doxygen-generated documentation for the Secure Device Access (SDA) client API. See the Files section to review documentation for specific APIs.
See the Secure Device Access documentation for information about how Secure Device Access works.
Secure Device Access enables policy-based access control for IoT devices. It allows you to control who can access an IoT device, and which operations they can perform on the device. An Mbed device that supports Secure Device Access can validate permissions even when it is offline (not connected to Device Management).
To use Secure Device Access, your device application must call the Secure Device Access client APIs as follows:
sda_init()
.sda_operation_process()
:SDA_OPERATION_FUNC_CALL
, the API calls the device application callback and passes it the operation handle with the verified and parsed payload.The device application callback must perform a number of steps to determine what the requested operation is and whether it is permitted:
sda_command_type_get()
. We currently only support operation (also called function) call commands (SDA_OPERATION_FUNC_CALL
).sda_func_call_name_get()
.sda_func_call_numeric_parameter_get()
or sda_func_call_data_parameter_get()
, depending on the operation.sda_scope_get_next()
.sda_operation_process
failed with an error.sda_finalize()
.