mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
tests/unittests/tests-gcoap: adapt to resource context ptr
This commit is contained in:
parent
aa52f5334b
commit
96fb3b1e21
@ -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 = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user