#
# Copyright 2014 Jules Cléro
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

if [ ! $# == 1 ]; then
    echo "Usage:" 1>&2
    echo "    - send2Drone.sh <file>" 1>&2
    exit
fi

FILE_PATH=$PWD/$1

curl -T $FILE_PATH "ftp://192.168.1.1"

Add a little script tool to easily send a file to the drone
Add a little script tool to easily send a file to the drone

The drone has an ftp server running. This script wrap a call
to the curl command. It allows to easily send a file to the drone.
Once sent, the file is available in the /data/video directory.

Signed-off-by: clero <a3f0a80bd123b993d381d198d01183565e01d074@etud.insa-toulouse.fr>
