Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write more that 512 bytes to a socket #30

Open
mnelson920 opened this issue Nov 14, 2019 · 2 comments
Open

How to write more that 512 bytes to a socket #30

mnelson920 opened this issue Nov 14, 2019 · 2 comments

Comments

@mnelson920
Copy link

From what I seeing this library writes data to a socket using HEX. Doing this limits the modem to write 512 bytes. I'm trying to write a JSON message that is 570 bytes to AWS. Is there any way to change this limitation?

@sandeepmistry
Copy link
Contributor

Hi @mnelson920,

Please share a sketch to reproduce any issues you are facing.

NBClient has a loop now to chunk sending data over a socket that is over 512 bytes: https://github.com/arduino-libraries/MKRNB/blob/master/src/NBClient.cpp#L266-L329

@CptHolzschnauz
Copy link
Contributor

Hi @sandeepmistry : But it's 256 bytes per push, it's more stable with 512

#84

Also the asynchronous socket close is a game changer in stability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants