Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Rocketct
Copy link

@Rocketct Rocketct commented Nov 9, 2018

  • Changed the file system examples structure;
  • Modified the examples for allow the connection with the MKRGSM board;
  • Removed all the unnecessary examples;

i have change also the server URL in the examples to httpbin.org where required (get, post put, delete ...), a typical successful output is the following:

Starting Arduino web client.
connected
making DELETE request
Status code: 200
Response: {
  "args": {}, 
  "data": "", 
  "files": {}, 
  "form": {
    "age": "46", 
    "name": "light"
  }, 
  "headers": {
    "Connection": "close", 
    "Content-Length": "17", 
    "Content-Type": "application/x-www-form-urlencoded", 
    "Host": "httpbin.org", 
    "User-Agent": "Arduino/2.2.0"
  }, 
  "json": null, 
  "origin": "185.3.54.12", 
"url": "http://httpbin.org/delete"

}

Wait five seconds

let me know if ok for you.
cc/ @sandeepmistry @facchinm @akash73

Copy link

@sandeepmistry sandeepmistry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the GSM files use a public web server, should we consider to use the same in the WiFi examples and remove the Node.js test server?

client.write((const byte*)postData.c_str(), postData.length());
client.endRequest();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure about this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants