Conversation
5ee902b to
141ea34
Compare
|
I can't build this example: arm-none-eabi-gcc (Gentoo 4.8.3 p1.1, pie-0.5.9) 4.8.3 When I change the size to numeric constant |
|
Yup, that has been fixed, but on the wrong branch it seems. 1 sec. |
|
Should build now :) |
245e9c9 to
498aee1
Compare
microcoap/Makefile
Outdated
|
@LudwigOrtmann @authmillenon |
|
Aaaah, because it will break other things -.- sighs |
|
Looks good, please squash. |
aacb578 to
7daa0c0
Compare
|
Done :) |
with gcc with clang edit: same error as reported in #2 (comment) |
diff --git a/microcoap/endpoints.c b/microcoap/endpoints.c
index 0c8869e..f6b6967 100644
--- a/microcoap/endpoints.c
+++ b/microcoap/endpoints.c
@@ -6,14 +6,14 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
-uint16_t response_len = 1500;
-static char response[response_len] = "";
+#define RESPONSE_LEN (1500)
+static char response[RESPONSE_LEN] = "";
static const coap_endpoint_path_t path = {2, {"foo", "bar"}};
void create_response(void)
{
- strncat(response, "1337", response_len-5);
+ strncat(response, "1337", RESPONSE_LEN-5);
}
/* The handler which handles the path /foo/bar */fixes it. |
|
That one seems to haunt me :D This was already fixed, but I must've lost it in the rebase... Sorry. 1sec. |
|
Wait.. How did you get that? I can't seem to find the offending line(s) in the current code. |
|
Arghs checked out wrong branch 😊 |
|
All is fine: ACK |
add microcoap example application
|
✨ Thanks for reviewing! :) |
…example add microcoap example application
Add a small microcoap example server along with instructions on how to test it using marz and the Copper Firefox Plugin. Depends on RIOT-OS/RIOT#2383.