Device API > BS2_GetAllAuthOperatorLevelEx
[+ 2.6.3] Gets all device operators.
When using BS2_SetAuthConfig, BS2_GetAuthConfig, there is a limitation that you can set operators up to 10.
The new API below accommodates setting operators up to 1,000.
#include "BS_API.h" int BS2_GetAllAuthOperatorLevelEx(void* context, BS2_DEVICE_ID deviceId, BS2AuthOperatorLevel** operatorlevelObj, uint32_t* numOperatorlevel);
context
: ContextdeviceId
: Device IDoperatorlevelObj
: Pointer to store the operators from devicenumOperatorlevel
: Number of operators from device
Note
The operatorlevelObj variable needs to return the memory to the system by the BS2_ReleaseObject function after being used.
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.