Merge pull request #24 from onovo1/patch-1

Fix typo in the attribute parameter to the right format "core.rd". (Update coap-rd.c)
This commit is contained in:
obgm committed 2016-01-28 14:45:29 +01:00
commit 4ae33c8f7e
1 file changed
+1 -1
+1 -1
View File
@@ -545,7 +545,7 @@ init_resources(coap_context_t *ctx) {
coap_register_handler(r, COAP_REQUEST_POST, hnd_post_rd);
coap_add_attr(r, (unsigned char *)"ct", 2, (unsigned char *)"40", 2, 0);
coap_add_attr(r, (unsigned char *)"rt", 2, (unsigned char *)"\"core-rd\"", 9, 0);
coap_add_attr(r, (unsigned char *)"rt", 2, (unsigned char *)"\"core.rd\"", 9, 0);
coap_add_attr(r, (unsigned char *)"ins", 2, (unsigned char *)"\"default\"", 9, 0);
coap_add_resource(ctx, r);