-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
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
libary logging function deactivate? #176
Comments
The library itself does not log only because you lost the internet connection. The part doing the logging in this case, are the examples Simply remove these lines in the main method: Serial.printf("Connecting to: (%s) with token (%s)\n", THINGSBOARD_SERVER, TOKEN);
Serial.println("Failed to connect"); |
thx for you answer, I have to be more specific |
There is a section in the documentation on how you can exchange the logger with your own implementation. Simply do that and if you do not want the logging functions to log anything, simply let the methods be empty. Disabling messages is not recommended tough, because per default the library only logs errors. Meaning if logs are disabled debugging issues might be much harder or not even detected in the first place. |
@imbeacon Would be nice if this issue could be closed, because the requested functionality already exists and is documented in the library |
If there is no Internet connection, the libary displays error messages every second.
How can the logger function be switched off?
The text was updated successfully, but these errors were encountered: