File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
Visual Studio Projects/ZWaveJS.NET/ZWaveJS.NET Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,32 @@ public Task<CMDResult> HasSecurityClass(Enums.SecurityClass Class)
523523 return Result . Task ;
524524 }
525525
526-
526+ // FIX ME
527+ public Task < CMDResult > WaitForWakeup ( )
528+ {
529+ Guid ID = Guid . NewGuid ( ) ;
530+
531+ TaskCompletionSource < CMDResult > Result = new TaskCompletionSource < CMDResult > ( ) ;
532+
533+ Driver . Callbacks . Add ( ID , ( JO ) =>
534+ {
535+ CMDResult Res = new CMDResult ( JO ) ;
536+ Result . SetResult ( Res ) ;
537+
538+ } ) ;
539+
540+ Dictionary < string , object > Request = new Dictionary < string , object > ( ) ;
541+ Request . Add ( "messageId" , ID ) ;
542+ //Request.Add("command", Enums.Commands.HasSecurityClass);
543+ Request . Add ( "nodeId" , this . id ) ;
544+
545+ string RequestPL = JsonConvert . SerializeObject ( Request ) ;
546+ Driver . Client . SendAsync ( RequestPL ) ;
547+
548+ return Result . Task ;
549+ }
550+
551+
527552
528553 [ Newtonsoft . Json . JsonProperty ]
529554 internal Endpoint [ ] endpoints { get ; set ; }
You can’t perform that action at this time.
0 commit comments