I suggest you stop mucking about with string formatting that you evidently don't understand yet, and just type the URL into your sketch:Code: [Select]char *pageAdd = "/controlpanel/getalarm.php?alarmstate=0";Or whatever values you want to use for testing. You can confirm that the path is correct by typing the corresponding URL into the address field of your browser.Quotehttp://220.127.116.11/controlpanel/getalarm.php?alarmstate=0Does the browser show the response you expected? The Arduino should receive the same response, if the network access is succeeding.
char *pageAdd = "/controlpanel/getalarm.php?alarmstate=0";
Yes in this way i get the right response....How can i i change 0 with the value?
char pageAdd;int alarmstate=0;sprintf(pageAdd, "/controlpanel/getalarm.php?alarmstate=%d", alarmstate);