Search in sources :

Example 1 with ResetChipCommand

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();
}
Also used : ResetChipCommand(com.neuronrobotics.sdk.commands.neuronrobotics.bootloader.ResetChipCommand) BowlerDatagram(com.neuronrobotics.sdk.common.BowlerDatagram) IOException(java.io.IOException)

Aggregations

ResetChipCommand (com.neuronrobotics.sdk.commands.neuronrobotics.bootloader.ResetChipCommand)1 BowlerDatagram (com.neuronrobotics.sdk.common.BowlerDatagram)1 IOException (java.io.IOException)1