Skip to content

Commit

Permalink
fixup! fixup! gcoap/fileserver: add event callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Jan 15, 2023
1 parent 2b9b89e commit 292edce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/gcoap_fileserver/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 292edce

Please sign in to comment.