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)); } }); }); }
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)); }); }); }