/// <summary> /// Joins a network that has been started by a coordinator before. This will scan for nearby devices internally. /// </summary> /// <param name="netId">unique network ID</param> /// <param name="handler">handler for result</param> public void JoinRequest( UInt16 panId, JoinConfirmHandler handler) { if (_running || _scanning) { if (handler != null) handler.Invoke(_net, Status.Busy, 0, 0, 0); return; } _running = true; _panId = panId; _joinConfirmHandler = handler; StartScanning(ScanHandlerJoinRequest); }
/// <summary> /// Joins a network that has been started by a coordinator before. This will scan for nearby devices internally. /// </summary> /// <param name="netId">unique network ID</param> /// <param name="handler">handler for result</param> public void JoinRequest( UInt16 panId, JoinConfirmHandler handler) { if (_running || _scanning) { if (handler != null) { handler.Invoke(_net, Status.Busy, 0, 0, 0); } return; } _running = true; _panId = panId; _joinConfirmHandler = handler; StartScanning(ScanHandlerJoinRequest); }
/// <summary> /// Joins a network that has been started by a coordinator before. This will scan for nearby devices internally. /// </summary> /// <param name="netId">unique network ID</param> /// <param name="handler">handler for result</param> public void JoinRequest( UInt16 panId, JoinConfirmHandler handler) { _mgmt.JoinRequest(panId, handler); }
/// <summary> /// Joins a network that has been started by a coordinator before. This will scan for nearby devices internally. /// </summary> /// <param name="netId">unique network ID</param> /// <param name="handler">handler for result</param> public void JoinRequest( UInt16 panId, JoinConfirmHandler handler) { _mgmt.JoinRequest(panId, handler); }