mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-01 10:37:08 +03:00
Implemented new network-I/O functions for Contiki
This commit is contained in:
1 parent
f5fed78e59
commit
a1ec0371ff
7 files changed
+97
-62
No files matched your search
+3
-2
@@ -93,7 +93,8 @@ init_coap() {
|
||||
#endif
|
||||
|
||||
void
|
||||
hnd_get_time(coap_context_t *ctx, struct coap_resource_t *resource,
|
||||
hnd_get_time(coap_context_t *ctx, struct coap_resource_t *resource,
|
||||
const coap_endpoint_t *local_interface,
|
||||
coap_address_t *peer, coap_pdu_t *request, str *token,
|
||||
coap_pdu_t *response) {
|
||||
unsigned char buf[2];
|
||||
@@ -188,7 +189,7 @@ PROCESS_THREAD(coap_server_process, ev, data)
|
||||
PROCESS_YIELD();
|
||||
if(ev == tcpip_event) {
|
||||
coap_read(coap_context); /* read received data */
|
||||
coap_dispatch(coap_context); /* and dispatch PDUs from receivequeue */
|
||||
/* coap_dispatch(coap_context); /\* and dispatch PDUs from receivequeue *\/ */
|
||||
} else if (ev == PROCESS_EVENT_TIMER && etimer_expired(&dirty_timer)) {
|
||||
time_resource->dirty = 1;
|
||||
etimer_reset(&dirty_timer);
|
||||
|
||||
Reference in new issue
Block a user