public DiscoverResult[] DiscoverNodes() { var timeoutResponse = Send(AtCmd.NodeDiscoverTimeout).GetResponse(); var timeout = GetDiscoverTimeout(timeoutResponse); var request = CreateDiscoverRequest(timeout); var responses = request.GetResponses(); var result = new DiscoverResult[responses.Length]; for (var i = 0; i < responses.Length; i++) { result[i] = GetDiscoverResponse(responses[i]); } return(result); }
private void PrintNode(int nodeNumber, DiscoverResult info) { Debug.Print("#" + nodeNumber + " - " + info); led7r.TurnLightOn(nodeNumber); }
private static void OnNodeDiscovered(DiscoverResult node) { Debug.Print("Node discovered: " + node.NodeInfo); }
public DiscoverResult[] DiscoverNodes() { var timeoutResponse = Send(AtCmd.NodeDiscoverTimeout).GetResponse(); var timeout = GetDiscoverTimeout(timeoutResponse); var request = CreateDiscoverRequest(timeout); var responses = request.GetResponses(); var result = new DiscoverResult[responses.Length]; for (var i = 0; i < responses.Length; i++) result[i] = GetDiscoverResponse(responses[i]); return result; }