FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update WebsocketHandler.cpp by rtopz · Pull Request #5 · jackjansen/esp32_idf5_https_server · GitHub

Repository navigation

Update WebsocketHandler.cpp - #5

Open
rtopz wants to merge 1 commit into
jackjansen:masterfrom
rtopz:patch-1
Open

rtopz wants to merge 1 commit into
jackjansen:masterfrom
rtopz:patch-1

Conversation

rtopz commented Sep 9, 2024

Copy link
Copy Markdown

payloadLen is a long unsigned int, %d in printf is for integers. This should be %lu for long unsigned int

esp-idf 5.1.2 errors on build with default error/warn settings

payloadLen is a long unsigned int, %d in printf is for integers. This should be %lu for long unsigned int

trivalik commented Nov 20, 2025 •
edited
Loading

Copy link
Copy Markdown

uint32_t payloadLen = 0; which I would interpret as unsigned int, but you are right the compilere says long unsigned int.

Alternative tested solution:

    HTTPS_LOGI("WS payload: length=%" PRIu32, payloadLen);

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL