private void ServerOnPairingCompleted(object sender, PairSetupCompleteEventArgs e)
        {
            _ltskProperty.Value = e.Ltsk;
            _ltpkProperty.Value = e.Ltpk;

            DriverContext.NodeTemplateFactory.SetPropertyValue(_ltskProperty.ObjId, e.Ltsk); //save to database
            DriverContext.NodeTemplateFactory.SetPropertyValue(_ltpkProperty.ObjId, e.Ltpk); //save to database
        }
Exemple #2
0
        private void ServerOnPairingCompleted(object sender, PairSetupCompleteEventArgs e)
        {
            DriverContext.Logger.LogInformation($"Saving LTSK {e.Ltsk} and LTPK {e.Ltpk} to database...");

            _ltskProperty.Value = e.Ltsk;
            _ltpkProperty.Value = e.Ltpk;

            DriverContext.NodeTemplateFactory.SetPropertyValue(_ltskProperty.ObjId, e.Ltsk); //save to database
            DriverContext.NodeTemplateFactory.SetPropertyValue(_ltpkProperty.ObjId, e.Ltpk); //save to database

            DriverContext.Logger.LogInformation($"Saving LTSK {e.Ltsk} and LTPK {e.Ltpk} to database...done");
        }
 private void HapServerOnPairingCompleted(object sender, PairSetupCompleteEventArgs e)
 {
     PairingCompleted?.Invoke(sender, e);
     _bonjour.AlreadyPaired = true;
 }
Exemple #4
0
 private void HapServerOnPairingCompleted(object sender, PairSetupCompleteEventArgs e)
 {
     PairingCompleted?.Invoke(sender, e);
 }