From 292edce11f0490d27d855ba924c687634ff6c58b Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sun, 15 Jan 2023 12:03:50 +0100 Subject: [PATCH] fixup! fixup! gcoap/fileserver: add event callbacks --- examples/gcoap_fileserver/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/gcoap_fileserver/main.c b/examples/gcoap_fileserver/main.c index 220c064441bec..e736315726b5e 100644 --- a/examples/gcoap_fileserver/main.c +++ b/examples/gcoap_fileserver/main.c @@ -50,19 +50,19 @@ static void _event_cb(gcoap_fileserver_event_t event, gcoap_fileserver_event_ctx { switch (event) { case GCOAP_FILESERVER_GET_FILE_START: - printf("gcoap fileserver: Download started: %s\n", ctx->file); + printf("gcoap fileserver: Download started: %s\n", ctx->path); break; case GCOAP_FILESERVER_GET_FILE_END: - printf("gcoap fileserver: Download finished: %s\n", ctx->file); + printf("gcoap fileserver: Download finished: %s\n", ctx->path); break; case GCOAP_FILESERVER_PUT_FILE_START: - printf("gcoap fileserver: Upload started: %s\n", ctx->file); + printf("gcoap fileserver: Upload started: %s\n", ctx->path); break; case GCOAP_FILESERVER_PUT_FILE_END: - printf("gcoap fileserver: Upload finished: %s\n", ctx->file); + printf("gcoap fileserver: Upload finished: %s\n", ctx->path); break; case GCOAP_FILESERVER_DELETE_FILE: - printf("gcoap fileserver: Delete %s\n", ctx->file); + printf("gcoap fileserver: Delete %s\n", ctx->path); break; } }