Internet library will allow your arduino to handle Http requests easily, and access certain REST api’s “even with JSON format” and get their responses and take certain actions.
Adding #define CUSTOM_SETTINGS along with #define INCLUDE_INTERNET_SHIELD is a key that will let you unlock the Internet shield only amongst all shields and prevent 1Sheeld library from eating your memory specially for UNO board.
– For Android M(6) or greater, there are permissions to be granted before using the Data Logger shield, please make sure to grant the permissions or else it may affect the application’s performance.
– It’s preferable creating requests globally “above setup function” avoiding losing data, and be careful not to create requests in local functions unless you are not going to use them again in your sketch life.
– Maximum number of unique requests per sketch is 20 requests.
– Maximum depth chain in Json requests is 8 Keys per chain.
– Response is sent page by page each time 64bytes/page (this is a default value and can be changed) until the whole response is finished on the application and disposing requests clears the unwanted responses in application.
– Make sure to use each shield key to prevent consuming lot of memory, specially if you are using an Arduino UNO board.
– This class deals with all the request that will be handled and processed by the application on your smartphone.
– Each object created using Http will have a sequential ID which will be dealt with your whole sketch and even at the application with Maximum 20 unique requests.
– This class deals with the response returned by each performed request, you can use it to query the json response, get a certain amount of bytes, get headers, or get the response status code.
– This class brings the ease of dealing with API’s using the power of JSON and has certain operators to deal with chaining keys and checking json responses with 8 Keys Maximum.
– [ ] operator for chaining keys.
– != to check inequality of json chains.
– == to check equality of json chains.