use of com.neuronrobotics.sdk.commands.neuronrobotics.bootloader.ResetChipCommand in project java-bowler by NeuronRobotics.
the class NRBootLoader method reset.
public void reset() {
// We expect this to fail the connection.
// No response is expected
// Disconnect afterwards
BowlerDatagram bd = BowlerDatagramFactory.build(getAddress(), new ResetChipCommand());
try {
getConnection().sendAsync(bd);
getConnection().getDataOuts().flush();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
disconnect();
}
Aggregations