Please help me.
i want send dynamic sensor value to server.So,i convert floating value to string through dtostrf command.
ex current=37.05
char buffer[20];
String value1=dtostrf(current,5,5,buffer);
String val=(value1);
Serial.println(val);
Serial monitor shows val=37.50007
then
mySerial.println("AT+HTTPPARA="URL","www.imkhalid.info/fazlu/data.php?a=""+val+"""");
delay(2000);
ShowSerialData();
but server shows empty.no data found.
please help me.
system
#2
String val=(value1);
What a waste...
but server shows empty.no data found.
You assume that the AT command parameters are valid. Have you verified that that IS the case?
What do you you see if you enter http://www.imkhalid.info/fazlu/data.php?a=37.50007 in your browser's address bar?
if i use this instruction
http://www.imkhalid.info/fazlu/data.php?a=37.50007
data shows in server
a=37.5007;
if i write a statement after a=
ex a=Fazlul then got data a=Fazlul
above instruction can not identify variable value.i don't know why.
system
#4
above instruction can not identify variable value.i don't know why.
What "above instruction"? You are trying to execute a PHP script that you have not shown us.
i have done this.
http://www.imkhalid.info/fazlu/data.php?a=37.50007
php scripts shpws
a=37.50007
required
http://www.imkhalid.info/fazlu/data.php?a=dynamic value
i trying this method.here current is dynamic value.
char buffer[20];
String value1=dtostrf(current,5,5,buffer);
String val=(value1);
Serial.println(val);
mySerial.println("AT+HTTPPARA="URL","www.imkhalid.info/fazlu/data.php?a=""+val+"""");
php scripts shows empty
problem solved
String one="a";
String thee=String(one+current);
mySerial.println("AT+HTTPPARA="URL","www.imkhalid.info/fazlu/data.php?a="+three+""");