Open AlCalzone opened 5 months ago
@AlCalzone I have questions.
abort()
? I only see this but it seems to be a callback on abort, not triggering an abort https://zwave-js.github.io/node-zwave-js/#/getting-started/security-s2?id=conventional-inclusion-processFor 1.:
The "node found"
controller event was received, and the "node added"
event for the same node ID was not received yet.
For 2.: abort()
is wrong, as you correctly noticed. You need to call controller.cancelSecureBootstrapS2(KEXFailType.BootstrappingCanceled)
.
This button does nothing when the inclusion has already been completed and Z-Wave JS is waiting for S2 bootstrapping to complete:
It should probably call the
abort()
user callback so Z-Wave JS can abort S2 bootstrapping. Otherwise the user is stuck without being able to do anything until bootstraping times out after 4 minutes.