Loading...
Searching...
No Matches

Resource handler for the CoAP file system server. More...

Detailed Description

Resource handler for the CoAP file system server.

Author
chrysn chrys.nosp@m.n@fs.nosp@m.fe.or.nosp@m.g

Definition in file fileserver.h.

#include "net/nanocoap.h"
+ Include dependency graph for fileserver.h:

Go to the source code of this file.

Data Structures

struct  nanocoap_fileserver_event_ctx_t
 GCoAP fileserver event context. More...
 

Macros

#define COAPFILESERVER_DIR_DELETE_ETAG   (0x6ce88b56u)
 Randomly generated Etag, used by a client when a directory should only be deleted, if it is empty.
 

Typedefs

typedef void(* nanocoap_fileserver_event_handler_t) (nanocoap_fileserver_event_t event, nanocoap_fileserver_event_ctx_t *ctx)
 GCoAP fileserver event callback type.
 

Enumerations

enum  nanocoap_fileserver_event_t {
  NANOCOAP_FILESERVER_GET_FILE_START , NANOCOAP_FILESERVER_GET_FILE_END , NANOCOAP_FILESERVER_PUT_FILE_START , NANOCOAP_FILESERVER_PUT_FILE_END ,
  NANOCOAP_FILESERVER_DELETE_FILE
}
 GCoAP fileserver event types. More...
 

Functions

void nanocoap_fileserver_set_event_cb (nanocoap_fileserver_event_handler_t cb, void *arg)
 Register a consumer for GCoAP fileserver events Requires the nanocoap_fileserver_callback module.
 
ssize_t nanocoap_fileserver_handler (coap_pkt_t *pdu, uint8_t *buf, size_t len, coap_request_ctx_t *ctx)
 File server handler.