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://188.8.131.52/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);
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16