[][src]Function dynamixel2::scan

pub fn scan<S: ?Sized, F>(
    stream: &mut S,
    on_response: F
) -> Result<(), WriteError> where
    S: Read + Write,
    F: FnMut(Result<PingResponse, ReadError>), 

Scan a bus for motors with a broadcast ping, calling an FnMut for each response.

Only timeouts are filtered out since they indicate a lack of response. All other responses (including errors) are passed to the handler.