Connect failed after a while
I was sending data to the thingworx by Arduino Yun. When I plugged the USB power, it worked well. However, after a while I couldn't see any new data on the Thing/Properties. And the QueryPropertyHistory services told me the data hadn't been updated. When I re-plugged the USB power, it still worked well. Why? Could you help me?
The core codes are:
String setData("curl "
"\"http://"+TWServer+":"+TWPort+"/Thingworx/Things/DHT21Thing/Properties/*?appKey="+appKey+"\""
" -X PUT "
"-i -H \"Content-Type:application/json\" "
"-H \"Accept:application/json\" "
"-d '{\"Temperature\" :" + tempAsString + ", \"Humidity\" :" + humidityAsString + "}' "
);
Serial.println("Set Data: "+ setData);
// run the curl command with the REST call that was build in the setTemperature String variable
p.runShellCommand(setData);

