tests/unittests/tests-gcoap: adapt to resource context ptr

This commit is contained in:
Kaspar Schleiser 2018-02-02 19:02:31 +01:00
parent aa52f5334b
commit 96fb3b1e21

View File

@ -26,13 +26,13 @@
* A test set of dummy resources. The resource handlers are set to NULL.
*/
static const coap_resource_t resources[] = {
{ "/act/switch", (COAP_GET | COAP_POST), NULL },
{ "/sensor/temp", (COAP_GET), NULL },
{ "/test/info/all", (COAP_GET), NULL },
{ .path = "/act/switch", .methods = (COAP_GET | COAP_POST) },
{ .path = "/sensor/temp", .methods = (COAP_GET) },
{ .path = "/test/info/all", .methods = (COAP_GET) },
};
static const coap_resource_t resources_second[] = {
{ "/second/part", (COAP_GET), NULL },
{ .path = "/second/part", .methods = (COAP_GET)},
};
static gcoap_listener_t listener = {