I need to send a get request using a string, and so I need to pass a float and a char value to the string in order to send it.Im trying to connect a PIC18F4550 to wifi using a ESP8266 module I also need to read and write into a database. I have been using this function I made to send AT Commands and its been working fine :
void send (char dato[]){
int i = 0;
while (dato[i]!=0){
TXREG=dato[i];
i++;
while(TRMT==0);
}
TXREG = 0x0D;
while(TRMT==0);
TXREG = 0x0A;
}
The problem I have is that i need to send :
send("GET /ESPic/index3.php?temp=temp&luz=luz");
But luz is char and temp is float.Using a FTDI232 and Arduino IDE I am reading the data between the PIC and the ESP8266.I dont really know how to do what I need.