nuki-rs
Bluetooth API for Nuki Smartlock
Usage
Pair
let mut nuki = discover_pairable.await.unwrap;
nuki.pair.await.unwrap;
// Save the credentials to file.
// The file contains the MAC adresse and the private key.
nuki.save.unwrap;
Perform actions
The following actions can be performed: Perform one of the following actions:
- Unlock,
- Lock,
- Unlatch,
- LockAndGo,
- LockAnGoUnlatch,
- FullLock,
- FobAction1,
- FobAction2,
- FobAction3
// Perfom unlock
use LockAction;
let nuki = load.unwrap;
nuki.perform_lock_action.unwrap;
Example
see /example.