Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update WebsocketHandler.cpp#5

Open
rtopz wants to merge 1 commit intojackjansen:masterjackjansen/esp32_idf5_https_server:masterfrom
rtopz:patch-1rtopz/esp32_idf5_https_server:patch-1Copy head branch name to clipboard
Open

Update WebsocketHandler.cpp#5
rtopz wants to merge 1 commit intojackjansen:masterjackjansen/esp32_idf5_https_server:masterfrom
rtopz:patch-1rtopz/esp32_idf5_https_server:patch-1Copy head branch name to clipboard

Conversation

@rtopz
Copy link

@rtopz rtopz commented Sep 9, 2024

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
Copy link

trivalik commented Nov 20, 2025

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);

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.