ev3duder  0.3.0
EV3 Downloader/Uploader
dl.c File Reference

downloads files from brick More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.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
 Transmission is done in units smaller or equal to CHUNK_SIZE. More...
 

Functions

int dl (const char *path, FILE *fp)
 download remote source rem to local file loc More...
 

Detailed Description

downloads files from brick

Note
doesn't download from /tmp/ for whatever reason

Definition in file dl.c.

Macro Definition Documentation

#define CHUNK_SIZE   1000

Transmission is done in units smaller or equal to CHUNK_SIZE.

Definition at line 20 of file dl.c.

Function Documentation

int dl ( const char *  path,
FILE *  fp 
)

download remote source rem to local file loc

Parameters
pathpath on the ev3
fpFILE* to write data to
Return values
erroraccording to enum ERR

Definition at line 26 of file dl.c.