We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems like it logs a pointer value rather than the actual value
The text was updated successfully, but these errors were encountered:
when i use vsnprintf instead of snprintf_P i get correct output from the debugger function.
vsnprintf
snprintf_P
size_t debugI(const char* format, ...) { #if DEBUG_MODE va_list arg; va_start(arg, format); char text[255]; vsnprintf(text, sizeof(text), format, arg); Serial.printf("[INFO] %s\n", text); #endif }
Output with snprintf_P
[INFO] Connecting to ventilation unit at baud 1073421920 [ERROR] - failed [INFO] Successfully connected to WiFi! [INFO] IP: Tq�?Tq�? [INFO] GW: Tq�?Tq�? [INFO] DNS: Tq�?Tq�?
Output with vsnprintf
[INFO] Connecting to ventilation unit at baud 9600 [ERROR] - failed [INFO] Successfully connected to WiFi! [INFO] IP: 10.0.0.180 [INFO] GW: 10.0.0.138 [INFO] DNS: 10.0.0.138
im not a C guy, so i dont know if this would be a correct fix, but hopefully give some pointers where to look.
Sorry, something went wrong.
gskjold
No branches or pull requests
Seems like it logs a pointer value rather than the actual value
The text was updated successfully, but these errors were encountered: