mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-14 18:05:48 +00:00
Convert binary string to integer in DoorLockService
This commit is contained in:
@ -481,6 +481,7 @@ export class DoorLockService {
|
||||
}
|
||||
});
|
||||
|
||||
// Convert the binary string to an integer
|
||||
const workingDayValue = parseInt(binaryString, 2);
|
||||
|
||||
return workingDayValue;
|
||||
|
Reference in New Issue
Block a user