UNPKG

tello-custom-ip

Version:

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

29 lines 658 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setTelloIP = setTelloIP; exports.getTelloIP = getTelloIP; // Default configuration var config = { ip: '192.168.10.1', // Default Tello IP }; /** * Set the IP address for the Tello drone * @param ip - Custom IP address to use */ function setTelloIP(ip) { if (ip && typeof ip === 'string') { config.ip = ip; } } /** * Get the current Tello IP address * @returns The current IP address */ function getTelloIP() { return config.ip; } exports.default = { setTelloIP: setTelloIP, getTelloIP: getTelloIP, }; //# sourceMappingURL=config.js.map