With this code I send data to a link, in this case localhost, I would also like to send the same data to another link in my cloud at the same time, would there be a way to do this?
void loop() {
HTTPClient http; //Declare object of class HTTPClient
String postData, temporeal, ano, link;
'
//Post Data
postData = "&ano=" + ano+ "&temporeal=" + temporeal;
link = "http://192.168.1.106/postdemo.php";
http.begin(client,link); //Specify request destination
http.addHeader("Content-Type", "application/x-www-form-urlencoded"); //Specify content-type header
int httpCode = http.POST(postData); //Send the request
String payload = http.getString(); //Get the response payload
Start by reading the pinned post 'How to get the most from the forum', after you do that and take the actions noted there, provide more information, if you can what was expected, and what happened.
I don't need the Arduino to do two things at the same time, I need a code that takes the data provided by the Arduino and sends it to two different locations, 1 to my virtual machine and the other to my cloud at the same time. Thanks for the answer.