예제 #1
0
 public void DiscoverNodes(DiscoverResultHandler handler)
 {
     Send(AtCmd.NodeDiscoverTimeout).Invoke(timeoutResponse =>
     {
         var timeout = GetDiscoverTimeout(timeoutResponse);
         var request = CreateDiscoverRequest(timeout);
         request.Invoke((response, finished) =>
         {
             if (response != null)
             {
                 handler(GetDiscoverResponse(response));
             }
         });
     });
 }
예제 #2
0
 public void DiscoverNodes(DiscoverResultHandler handler)
 {
     Send(AtCmd.NodeDiscoverTimeout).Invoke(timeoutResponse =>
     {
         var timeout = GetDiscoverTimeout(timeoutResponse);
         var request = CreateDiscoverRequest(timeout);
         request.Invoke((response, finished) =>
         {
             if (response != null)
                 handler(GetDiscoverResponse(response));
         });
     });
 }