Search in sources :

Example 1 with BootloaderIDCommand

use of com.neuronrobotics.sdk.commands.neuronrobotics.bootloader.BootloaderIDCommand in project java-bowler by NeuronRobotics.

the class NRBootLoader method getBootloaderID.

public String getBootloaderID() {
    BowlerDatagram back = send(new BootloaderIDCommand());
    if (back == null)
        return null;
    String s = new String();
    for (Byte b : back.getData()) {
        s += (char) b.byteValue();
    }
    return s;
}
Also used : BowlerDatagram(com.neuronrobotics.sdk.common.BowlerDatagram) BootloaderIDCommand(com.neuronrobotics.sdk.commands.neuronrobotics.bootloader.BootloaderIDCommand)

Aggregations

BootloaderIDCommand (com.neuronrobotics.sdk.commands.neuronrobotics.bootloader.BootloaderIDCommand)1 BowlerDatagram (com.neuronrobotics.sdk.common.BowlerDatagram)1