Student project by David Berlin and Boris Dogadov made for the Embedded Systems Workshop course given in Tel-Aviv University on 2010 by Sivan Toledo. Visit the project website for more details: http://davidberlin.co.il/sadna/ .
Dependencies: EthernetNetIf NTPClient_NetServices mbed HTTPServer HTTPClient CyaSSL
Dropbox/Dropbox.h@1:b05231650f32, 2011-04-25 (annotated)
- Committer:
- sivan_toledo
- Date:
- Mon Apr 25 12:31:46 2011 +0000
- Revision:
- 1:b05231650f32
- Parent:
- 0:3e7d6f496a67
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sivan_toledo | 0:3e7d6f496a67 | 1 | #include "mbed.h" |
sivan_toledo | 0:3e7d6f496a67 | 2 | #include <string> |
sivan_toledo | 0:3e7d6f496a67 | 3 | |
sivan_toledo | 1:b05231650f32 | 4 | // Get user token and secret based on username and password |
sivan_toledo | 0:3e7d6f496a67 | 5 | bool dropbox_getToken(char* username, char* password); |
sivan_toledo | 0:3e7d6f496a67 | 6 | |
sivan_toledo | 1:b05231650f32 | 7 | // Syncrhonize controller time to real-world time for dropbox authorization process |
sivan_toledo | 0:3e7d6f496a67 | 8 | bool dropbox_syncTime(); |
sivan_toledo | 0:3e7d6f496a67 | 9 | |
sivan_toledo | 1:b05231650f32 | 10 | // Upload local srcFile to dropbox with dstFile name |
sivan_toledo | 1:b05231650f32 | 11 | bool dropbox_upload(string srcFile, string dstFile); |
sivan_toledo | 1:b05231650f32 | 12 | |
sivan_toledo | 1:b05231650f32 | 13 | // Sends successful-sync confirmation email |
sivan_toledo | 1:b05231650f32 | 14 | bool send_email(char* email); |