Access Control API > BS2_SetAccessGroup


Configures an access group.

Declaration

#include "BS_API.h"
 
int BS2_SetAccessGroup(void* context, uint32_t deviceId, BS2AccessGroup* accessGroups, uint32_t accessGroupCount);

Parameter

  • [In] context : Context
  • [In] deviceId : Device ID
  • [In] accessGroups : List of access groups to be stored
  • [In] accessGroupCount : Number of access groups

Return Value

If successfully done, BS_SDK_SUCCESS will be returned.
If there is an error, the corresponding error code will be returned.

See Also