-
Notifications
You must be signed in to change notification settings - Fork 455
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
Wierd result for get data #8
Comments
I don't know what's happening, but for an ATmega with limited RAM, I'd prefer to use calls with predictable behavior: // Construct GET payload This is more old-fashioned C, but might work better here. |
You are using the String object, which as it says, is an object. I've not looked at the implementation, but it has to allocate some memory just to create itself and a few extra bytes for its own use. It would create space for a string of characters of a minimum size so that it doesnt have to keep allocating more memory as the string is added to. As jcw commented, using a fixed length character buffer and traditional C functions is a better solution for limited memory systems, you know where you are and how many bytes you are using. Andy |
I'm assuming this issue has been resolved by now. Please re-open if this is not the case. |
I don't know if i'm doing something wrong, but im getting really wierd results
When i am using 32 as size for buf_full, i get a request that looks like this on server side;
When using 128 as buffer size, i get something that makes sense
How is this possible? The resulting string is not more than 16 chars? And when i do Serial.println() it seems fine
Anyways, thanks for a great peice of software :)
// Robin
The text was updated successfully, but these errors were encountered: