Hi, with stevedb 's suggestion with 100us delay as mentioned → malfunction after 129 successful uploads. The 130. try to upload (post request) returned with error code -1, on the next try to upload the App crashed (loop stopped running).
BtW: You are using a baudrate of 1.843.200. Did you try using a lower baudrate?