mbed based IoT Gateway More details http://blog.thiseldo.co.uk/wp-filez/IoTGateway.pdf

Dependencies:   NetServices FatFileSystem csv_parser mbed MQTTClient RF12B DNSResolver SDFileSystem

Committer:
SomeRandomBloke
Date:
Mon Apr 02 22:05:20 2012 +0000
Revision:
0:a29a0225f203
Initial version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
SomeRandomBloke 0:a29a0225f203 1 /* mbed Microcontroller Library - FATFileHandle
SomeRandomBloke 0:a29a0225f203 2 * Copyright (c) 2008, sford
SomeRandomBloke 0:a29a0225f203 3 */
SomeRandomBloke 0:a29a0225f203 4
SomeRandomBloke 0:a29a0225f203 5 #ifndef MBED_FATFILEHANDLE_H
SomeRandomBloke 0:a29a0225f203 6 #define MBED_FATFILEHANDLE_H
SomeRandomBloke 0:a29a0225f203 7
SomeRandomBloke 0:a29a0225f203 8 #include "FileHandle.h"
SomeRandomBloke 0:a29a0225f203 9 #include "ff.h"
SomeRandomBloke 0:a29a0225f203 10
SomeRandomBloke 0:a29a0225f203 11 namespace mbed {
SomeRandomBloke 0:a29a0225f203 12
SomeRandomBloke 0:a29a0225f203 13 class FATFileHandle : public FileHandle {
SomeRandomBloke 0:a29a0225f203 14 public:
SomeRandomBloke 0:a29a0225f203 15
SomeRandomBloke 0:a29a0225f203 16 FATFileHandle(FIL fh);
SomeRandomBloke 0:a29a0225f203 17 virtual int close();
SomeRandomBloke 0:a29a0225f203 18 virtual ssize_t write(const void* buffer, size_t length);
SomeRandomBloke 0:a29a0225f203 19 virtual ssize_t read(void* buffer, size_t length);
SomeRandomBloke 0:a29a0225f203 20 virtual int isatty();
SomeRandomBloke 0:a29a0225f203 21 virtual off_t lseek(off_t position, int whence);
SomeRandomBloke 0:a29a0225f203 22 virtual int fsync();
SomeRandomBloke 0:a29a0225f203 23 virtual off_t flen();
SomeRandomBloke 0:a29a0225f203 24
SomeRandomBloke 0:a29a0225f203 25 protected:
SomeRandomBloke 0:a29a0225f203 26
SomeRandomBloke 0:a29a0225f203 27 FIL _fh;
SomeRandomBloke 0:a29a0225f203 28
SomeRandomBloke 0:a29a0225f203 29 };
SomeRandomBloke 0:a29a0225f203 30
SomeRandomBloke 0:a29a0225f203 31 }
SomeRandomBloke 0:a29a0225f203 32
SomeRandomBloke 0:a29a0225f203 33 #endif