i am trying to use a ESP8266 module to send temperature data using twilio and send it to my phone via text message. However it does not send the sensor data but the text i placed. Is it possible if i can get it to send sensor data instead? If so how can i do this?
strcat(data,"From=");
strcat(data,PHONE_FROM);
strcat(data,"&");
strcat(data,"To=");
strcat(data,PHONE_TO);
strcat(data,"&");
strcat(data,"sid=");
strcat(data,TWILIO_ACCOUNT_SID);
strcat(data,"&");
strcat(data,"token=");
strcat(data,TWILIO_TOKEN);
strcat(data,"&");
strcat(data,"Body=");
const char TEXT_MESSAGE_BODY [] = "temperature", temperature;
strcat(data,TEXT_MESSAGE_BODY);
wifi.httpPost("iot-https-relay.appspot.com","/twilio/Messages.json",data);
temperature should be getting sensor raw data and paste it after the "temperature" but it is not working.