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

wifinina: http-get example fails due to too small of buffer #470

Closed
scottfeldman opened this issue Oct 5, 2022 · 3 comments
Closed

wifinina: http-get example fails due to too small of buffer #470

scottfeldman opened this issue Oct 5, 2022 · 3 comments

Comments

@scottfeldman
Copy link
Contributor

Running examples/wifinina/http-get example on Arduino Nano33 IoT. Example fails with this error:

slice out of range : use http.SetBuf() to change the allocation to 1036 bytes or more 

Fix is to increase buffer size:

--- a/examples/wifinina/http-get/main.go
+++ b/examples/wifinina/http-get/main.go
@@ -44,7 +44,7 @@ var (
        adaptor *wifinina.Device
 )
 
-var buf [0x400]byte
+var buf [0x500]byte

I'll prepare a PR if the change is acceptable...

$ tinygo version
tinygo version 0.25.0 linux/arm (using go version go1.19.1 and LLVM version 14.0.0)

@scottfeldman scottfeldman changed the title wifinina: http-get test fails due to too small of buffer wifinina: http-get example fails due to too small of buffer Oct 5, 2022
@scottfeldman
Copy link
Contributor Author

Just a note for now: this issue is fixed with the netdev branch.

@scottfeldman
Copy link
Contributor Author

scottfeldman commented May 17, 2023

Fixed by #537.

@deadprogram deadprogram added the next-release Will be in next release label Dec 7, 2023
@deadprogram
Copy link
Member

Closing as completed in the most recent release. Thank you!

@deadprogram deadprogram removed the next-release Will be in next release label Feb 28, 2024
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

2 participants