Download picasa web albums photos automatically. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/
Dependencies: BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem mbed-rtos mbed
Download picasa web albums photos automatically.
This application requires mpod mother board.
Picasaウェブアルバムから、自動的に写真をダウンロードして、ディジタルフォトフレームに表示します。
動作させるには mpod マザーボード が必要です。
プログラムの中で、ご自分のアルバムのRSSファイルへのURLを指定してからご利用下さい。
Diff: HTTPFile.cpp
- Revision:
- 6:83383116c88a
- Parent:
- 0:dfd5cfea7112
--- a/HTTPFile.cpp Tue Aug 28 14:41:17 2012 +0000 +++ b/HTTPFile.cpp Sat Sep 01 04:28:20 2012 +0000 @@ -29,6 +29,12 @@ //Force reopening } +/*virtual*/ void HTTPFile::readReset() +{ + if(m_fp) + fseek(m_fp, 0, SEEK_SET); +} + /*virtual*/ int HTTPFile::read(char* buf, size_t len, size_t* pReadLen) { if(!openFile("r")) //File does not exist, or I/O error... @@ -43,6 +49,12 @@ return OK; } +/*virtual*/ void HTTPFile::writeReset() +{ + if(m_fp) + fseek(m_fp, 0, SEEK_SET); +} + /*virtual*/ int HTTPFile::write(const char* buf, size_t len) { if(!openFile("w")) //File does not exist, or I/O error...