Closed deeja closed 1 year ago
Hi @deeja Thanks for submitting this. It would be great to see this turn into a pull request to have it added to the repo. But first, would you please share a bit more around the issue. What is the Hardware, the platform (e.g. Arduino / PlatformIO / ESP_IDF that you used. Was this the only code change you implemented in making a fix? What was the exact error that came up? It would helpful if you could share that.
Hey @RobertByrnes
Arduino on PlatformIO
Hardware: Onboard Lilygo A7670 / SIM7000 (WROVER ESP32)
The TinyGsm RX Buffer is 1024 bytes so I'm guessing the TX is the same? https://github.com/Xinyuan-LilyGO/T-A7670X/blob/69c6275bfc2d6c1e233e5c1c7cfea5dca57e29f4/examples/ATdebug/ATdebug.ino#L8
Would create a PR, but honestly my C++ isn't up to scratch.
Yes, that was the only change. I'll find the error when I get a moment to look at it again
Hi @deeja try this implementation of your fix please and let me know how you get on - fix
Hey I'll check it out when the new devices arrive in a couple of weeks
HI @deeja try pulling the branch again - have just updated. I get an SSL connection OK with this code now...
Yeah, that looks to be working now. No issues with the connection. Thanks!
https://github.com/govorox/SSLClient/blob/d7cd4afeb10b0ce1c7a8c6c440d9a2cfaf473310/src/ssl_client.cpp#L134
If the buffer is smaller than the data being written, then the call fails.
My fix (although ugly) is this