Skip to content
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

Make it clearer how to free up the hardware serial for debugging. #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phrxmd
Copy link

@phrxmd phrxmd commented Jan 3, 2018

On boards with only one hardware serial interface, some users connect the ESP8266 through the hardware serial because it provides the fastest connection to the ESP8266. However, by default this hardware serial port is used for logging. These users need a custom logging facility.

Users that need the hardware serial port can free it up by defining _ESPCUSTOMLOGFACILITY_, and by providing user-defined alternatives to LOGERROR, LOGDEBUG etc. either in debug.h, or in a separate user header file.

Closes #84.

On boards with only one hardware serial interface, some users connect the ESP8266 through the hardware serial because it provides the fastest connection to the ESP8266. However, by default this hardware serial port is used for logging. It can be freed up by defining a custom log facility (together with alternative definitions of LOGERROR, LOGDEBUG etc.).
@apeeters
Copy link

apeeters commented Jan 9, 2018

Actually defining LOGERROR outside of WiFiEsp does not seem to work. The only solution seems to be to pass the actual stream to WiFiEsp/WiFiEspClient/WiFiEspServer/EspDrv.

@phrxmd
Copy link
Author

phrxmd commented Jan 9, 2018

Works for me, you'd need define it in the same place where you'd define ESPCUSTOMLOGFACILITY.

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