W.M. Programming in Mosaic Dec 19, 2022, 10:00 AM Dec 20, 2022, 2:22 PM

Dear Support,
I have JSON data with more than the length of THttpPostData 1536.
how can I send the data successfully with only transmit channel length of 1350?
 

Answers 4

M.B. Dec 19, 2022, 12:13 PM

Sending longer data using TCP connection is dobe by sending part by part in multiple PLC cycles. We can prepare modified function block more suitable for your use case. Do you have JSON data stored in a file or in a variable? 

W.M. Dec 20, 2022, 7:35 AM

yes, please, thats would be great!
I am storing my data in an array of variables.
Looking for your modification.

W.M. Dec 20, 2022, 1:14 PM

We are from the Teco middle east office, do you prefer to continue the discussion here or through emails?

M.B. Dec 20, 2022, 2:22 PM

I released new version of InternetLib (v61) that allows to send data larger than size of THttpPostData data type (change is made for all function blocks fbHttpRequestL, fbHttpRequestL2, fbHttpRequestL3). Library can be downloaded using Tools > Mosaic Updater (If you don't see the library in Mosaic Updater, please make sure, you are using last version of Mosaic 2022.2).

If you prefer using emails, you can reach me at bydzovsky@tecomat.cz. I'm currently on vacation, so my replies on both email and support site may take longer than usual.

Your answer

You have to be signed-in for asking a question. Continue after sign-in.