Hello
How can I read data (Text file) from online web host directory (http://domain/AA/TEST.TXT) by Arduino Uno + Ethernet Shield?
Thanks
Armen
Hello
How can I read data (Text file) from online web host directory (http://domain/AA/TEST.TXT) by Arduino Uno + Ethernet Shield?
Thanks
Armen
You make a GET request. The GET request identifies the script to run on the server, and the name of the file.
You create that script on the server, and make that script open the appropriate file, and stream its contents back to you.
This has NOTHING to do with the Arduino. What the Arduino does is EXACTLY the same as what any browser does.
Thanks Pauls
Can you send me sample code or ref link?
Thanks
Armen
Can you send me sample code
Code to do what?
Code for describe action in start of post.
Thanks Armen
Rmen:
Code for describe action in start of post.
Thanks Armen
The Ethernet library comes with examples. One of them, the Arduino-as-client example shows how to make GET requests.
Writing the script for the server is NOT an Arduino issue, and you won't get help here for doing that.
For getting a txt file, do you think you need an ASP.net program. Deploying the txt file in an IIS application folder and issuing a GET request from the Arduino should work.
If you are looking for some advanced server program, as Paul mentioned this is not the right forum for you.