Hello!
I had some good experiences with many devices of sending Data to the ubidots cloud, many thanks to all Ubidots supporter! Now i wanted to start with a Software client which updates Datas to Ubidots, the only thing is, that there is no example code for this type of software. The Software is from a german supplier cald IASNT which is a Soft PLC automation system. There are some HTTP PUT/Get Fuction already provided, which i only have to complete with some parameters, and there is the point where i need some help:
The Code which i want to change is from a Ubidots Example of the
Linkitone-board. The Upload part is as the folow:
_client.print(F("POST "));_
_client.print(URL);_
_client.print(F(" HTTP/1.1\r\n"));_
_client.print(F("Content-Type: application/json\r\n"));_
_//client.print(F("Connection: close\r\n"));_
_client.print(F("Host: "));_
_client.print(WEBSITE);_
_client.print(F("\r\n"));_
_client.print(F("Content-Length: "));_
_client.print(le);_
_client.print(F("\r\n"));_
_client.print(F("\r\n"));_
_client.print(payload);_
_client.println();_
_delay(5000);_
_client.stop();_
Now i would like to Upload these structure from this new software Client.
The problem is, that the client i want to use is written in SCL (structered control language) so there is no example for that language.
There is a HTTP Upload function in this client which looks like that:
_HTTP_REQ_
_(_
_HOST_ADDR := '192.168.0.101', // IP-Adresse der IP-CAM_
_REQ_RES_NAME := 'camera-cgi/com/ptz.cgi?move=left', //_
_USERNAME := 'Admin', // Benutzername_
_PASSWORD := 'Admin', // Passwort_
_REQ_METHOD := 1, // Request-Methode: 0 = GET, 1 = POST_
_SEND_REQ := bHttpReqSend,_
_STATUS => diStatus,_
_RESP_HDR_DATA => strRespHeaderData_
_);_
Now my qestion is that could it be a solution to replace the “REQ_RES_NAME” ->Sttring to the string which is combinated by the client.print(F)- structure?
I am also in contact with the other company, there is no online help available at the moment.
Thanks for any help and BR from switzerland!
MD53