I-Connect / NukiBleEsp32

GNU General Public License v3.0
35 stars 20 forks source link

Question: is it possible to use this project to build an esp32 based keyfob? #42

Closed the-mentor closed 5 months ago

Kelesys62 commented 6 months ago

Hello, I supposed it's possible, I succeed to implement a Nuki keypad.

The key is to pair your esp code with the correct AuthorizationIdType: nukiLock.pairNuki(NukiLock::AuthorizationIdType) where enum class AuthorizationIdType : uint8_t { App = 0, Bridge = 1, Fob = 2, Keypad = 3 }; And use the correct lock action: enum class LockAction : uint8_t { Unlock = 0x01, Lock = 0x02, Unlatch = 0x03, LockNgo = 0x04, LockNgoUnlatch = 0x05, FullLock = 0x06, FobAction1 = 0x81, FobAction2 = 0x82, FobAction3 = 0x83 };

Keep in mind that I never use the Fob mode on my side, only work with App, Bridge and Keypad. So it's speculation ;)