-
Notifications
You must be signed in to change notification settings - Fork 122
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
Doesn't compile on arduino Uno: not enough memory #4
Comments
Yes correct. I was facing this problem. So i had reduced the buffer size and by doing so the program compiled and was up and running. I had also forked this version. Please do check that out. |
works fine on a Mega, maybe it would be nice to fix the README because it's claiming it's working out-of-the-box on a Uno? |
README changed. Thanks. |
Hi all, |
The biggest memory usage is in the |
I am considering forking microcoap to avoid the dependency on the Arduino sockets library. I've had success with writing network code from scratch to work with the Ethernet Shield via the SPI bus. The W5100 chip has 16KB of embedded RAM, so that longer UDP packets are not a problem. I've also been able to work this way with binary encoded JSON over TCP and multicast based discovery. A similar lightweight library could be used with the ESP8266 with its embedded WiFi transceiver. |
@draggett, sounds great. I'm also trying to provide something similar (and also looking forward to add json-ld and msgpack support). Right now I'm trying to implement c++ version of microcoap: https://github.com/semiotproject/minicoap to simplify the library API while working with Arduino and provide option to build it for Arduino (also for ESP8266 Arduino firmware), Raspberry Pi (with the Wiring Pi library) and general POSIX-based systems. |
Thanks for the pointer. I look forward to looking at it when I get the time. Right now, I am focusing on a C++ web of things server and looking to include CoAP as one of the protocols. |
plz, could anyone help me? I have the same problem with compiling my code. it shows this message |
|
Result of compiling microcoap.ino with Arduino IDE: 1.5.6-R2
The sketch uses 14,560 bytes (45%) of storage space programs. The maximum is 32,256 bytes.
Global variables use 2348 bytes (114%) dynamic memory, leaving -300 bytes for local variables. The maximum is 2048 bytes.
The text was updated successfully, but these errors were encountered: