MarcoMartines / GSM-GPRS-GPS-Shield

GSM/GPRS & GPS Shield Library for modules using SIM900/SIM908
GNU General Public License v2.0
208 stars 152 forks source link

Push Data to server #35

Closed anujmattoo closed 8 years ago

anujmattoo commented 8 years ago

Hi, How can i use inet.GetHttp function to push data to Server for example if I use sparkfun push data. How can i merge that in the function and use it. Please help!

inche-ali commented 8 years ago

Hello anujmattoo, here is the example by using data.sparkfun.com server, modify file "GSM_GPRSLibrary_Client.ino" from "examples/GSM_GPRSLibrary_Client/" at line 53

inet.httpGET("data.sparkfun.com", 80, "/input/6JZbNolApzF4om2l9yYK?private_key=Ww0vPW1yrkUNDqWPV9jE&light=2501&switch=1&name=tutorial", msg, 50);

above code will do a request to data.sparkfun.com at port 80 (http) example link taken from https://learn.sparkfun.com/tutorials/pushing-data-to-datasparkfuncom/all and you can check your data here https://data.sparkfun.com/streams/6JZbNolApzF4om2l9yYK