I tried the following (see code, herunder):
The drone does not flip, yet the API does not return a non-zero error code.
PS: The takeoff and land commands work, though().
//Code:
import { TelloClient } from 'tello-api-client';
import { FlipCommand } from 'tello-api-client';
var IP_ADRESS = '192.168.10.1';
var PORT = 8889;
const cli = new TelloClient(IP_ADRESS, PORT);
cli.command();
cli.takeoff();
function Log(error, data) {
console.log(error : ${error});
console.log(data : ${data});
}
setTimeout(() => {
console.log(FlipCommand.Left = ${FlipCommand.Left});
var rc: any = cli.flip(FlipCommand.Left, Log);
}, 1000);
setTimeout(() => {
cli.land();
}, 5000);