Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Netduino plus 2 reads file.txt on the dropbox...?

dropbox netduinoplus2

  • Please log in to reply
2 replies to this topic

#1 Archimede

Archimede

    Member

  • Validating
  • PipPip
  • 15 posts

Posted 17 July 2013 - 12:32 PM

Hello everyone :) , i would like know if netduino plus 2 can to take data on a file.txt located on dropbox... My idea is to build an app (android or windows phone) that writes on the file.txt and netduino plus 2 reads the file.txt

ciclically.

Is it possible? thanks for your help...



#2 rensky

rensky

    New Member

  • Members
  • Pip
  • 8 posts

Posted 17 July 2013 - 01:49 PM

it is possible.

 

1. open a socket which call dropbox ip on port 80

2. send data via socket like this: (http Request Header)

 

GET /u/13000000/test.txt HTTP/1.1 Host: dl.dropboxusercontent.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Connection: keep-alive If-None-Match: 43926n Cache-Control: max-age=0

 

3. on socket are data, pick them

4. parse the http response

 

Here is a client ready but I have not tested it.

http://netmftoolbox....ailable classes

 

Best regards 

Rensky



#3 Archimede

Archimede

    Member

  • Validating
  • PipPip
  • 15 posts

Posted 18 July 2013 - 07:27 AM

thank you very much Rensky :D , i will try to write the correct code...if i have difficulty can you help me please?

 

i begin with your advice....

 

Best regards







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.