Added Erbium coap-12 and coap-13.

This commit is contained in:
Matthias Kovatsch 2013-02-13 17:43:04 +01:00
parent 19c8f9ffdd
commit a522357d20
33 changed files with 7138 additions and 107 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, Matthias Kovatsch and other contributors.
* Copyright (c) 2012, Matthias Kovatsch and other contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -56,6 +56,10 @@
#include "er-coap-06-engine.h"
#elif WITH_COAP == 7
#include "er-coap-07-engine.h"
#elif WITH_COAP == 12
#include "er-coap-12-engine.h"
#elif WITH_COAP == 13
#include "er-coap-13-engine.h"
#else
#error "CoAP version defined by WITH_COAP not implemented"
#endif
@ -99,7 +103,7 @@ static int uri_switch = 0;
void
client_chunk_handler(void *response)
{
uint8_t *chunk;
const uint8_t *chunk;
int len = coap_get_payload(response, &chunk);
printf("|%.*s", len, (char *)chunk);