Access Control API > BS2_SetAccessGroup
Configures an access group.
#include "BS_API.h" int BS2_SetAccessGroup(void* context, uint32_t deviceId, BS2AccessGroup* accessGroups, uint32_t accessGroupCount);
context
: ContextdeviceId
: Device IDaccessGroups
: List of access groups to be storedaccessGroupCount
: Number of access groups
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.