ev3duder  0.3.0
EV3 Downloader/Uploader
up.c File Reference

uploads a file to the ev3 More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "ev3_io.h"
#include "defs.h"
#include "packets.h"
#include "error.h"
#include "funcs.h"

Go to the source code of this file.

Macros

#define CHUNK_SIZE   1000
 

Functions

int up (FILE *fp, const char *dst)
 Uploads file to the ev3. path is always relative to /home/root/lms2012/prjs/sys/ More...
 

Detailed Description

uploads a file to the ev3

Author
Ahmad Fatoum

Definition in file up.c.

Macro Definition Documentation

#define CHUNK_SIZE   1000

Definition at line 20 of file up.c.

Function Documentation

int up ( FILE *  fp,
const char *  dst 
)

Uploads file to the ev3. path is always relative to /home/root/lms2012/prjs/sys/

upload local file loc to remote destination rem

Parameters
[in]fpLocal FILE* to upload
[in]dstdestination path to upload to (UTF-8 encoded)
Return values
erroraccording to enum ERR
Bug:
might not handle files bigger than 2gb :-)

Definition at line 29 of file up.c.