There's sample code in SDK package to change authentication mode but you can change it to required operation using BS2AuthConfig structure.
If you set BS2AuthConfig.authSchedule[Value] = 1(Always), you will be able to change.
If you want to set auth mode depending on access schedule, you can set this as schedule ID.
For example, you have access schedule ID = 2(6-8 am), ID=5(7-5 pm).
BS2AuthConfig.authSchedule[1] = 2;
BS2AuthConfig.authSchedule[8] = 5;Then, the device would work Biometric + PIN during 6-8 am, and ID+PIN during 7-5 pm.
Value | Code | Description |
---|---|---|
0 | BS2_AUTH_MODE_BIOMETRIC_ONLY | Biometric only |
1 | BS2_AUTH_MODE_BIOMETRIC_PIN | Biometric + PIN |
2 | BS2_AUTH_MODE_CARD_ONLY | Card only |
3 | BS2_AUTH_MODE_CARD_BIOMETRIC | Card + Biometric |
4 | BS2_AUTH_MODE_CARD_PIN | Card + PIN |
5 | BS2_AUTH_MODE_CARD_BIOMETRIC_OR_PIN | Card + Biometric or PIN |
6 | BS2_AUTH_MODE_CARD_BIOMETRIC_PIN | Card + Biometric + PIN |
7 | BS2_AUTH_MODE_ID_BIOMETRIC | ID + Biometric |
8 | BS2_AUTH_MODE_ID_PIN | ID + PIN |
9 | BS2_AUTH_MODE_ID_BIOMETRIC_OR_PIN | ID + Biometric or PIN |
10 | BS2_AUTH_MODE_ID_BIOMETRIC_PIN | ID + Biometric + PIN |
Please refer to the attached C# sample code to see details.