tello-custom-ip
Version:
Tello drone client with custom IP address support, forked from @0x77/tellots
43 lines (28 loc) • 789 B
Markdown
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.
```
npm install tello-custom-ip
```
```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);
```
MIT