UNPKG

tello-custom-ip

Version:

Tello drone client with custom IP address support, forked from @0x77/tellots

43 lines (28 loc) 789 B
# Tello Custom IP A TypeScript-based client for controlling DJI Tello drones with support for custom IP addresses. This is a fork of [@0x77/tellots](https://www.npmjs.com/package/@0x77/tellots) with added functionality to specify a custom IP address for the drone. ## Installation ``` npm install tello-custom-ip ``` ## Usage ```typescript import sdk from 'tello-custom-ip'; // Set a custom IP address (optional) sdk.setIP('192.168.1.10'); // Then use the SDK as usual async function main() { await sdk.control.connect(); // Get battery level const battery = await sdk.read.battery(); console.log(`Battery level: ${battery}%`); // Take off await sdk.control.takeOff(); // Land await sdk.control.land(); } main().catch(console.error); ``` ## License MIT