ChuckBell / MySQL_Connector_Arduino

Database connector library for using MySQL with your Arduino projects.
332 stars 133 forks source link

Remove Serial Output #72

Closed At-M closed 5 years ago

At-M commented 5 years ago

I'm using a ESP8266 as a wifi shield (yeah i know, but sadly it doesn't have enough ports for my usage) with an arduino.

The ESP and Arduino communicate via Serial, but the following strings interrupt my communication:

Connected to server version 5.5.57-MariaDB Disconnected.

Is there a way to disable these outputs? I don't need them.

ChuckBell commented 5 years ago

Yes. Go into the code and comment out those statements. For example, comment out line#86 in mysql_connection.cpp.

On Sun, Nov 4, 2018 at 15:12 David S. notifications@github.com wrote:

I'm using a ESP8266 as a wifi shield (yeah i know, but sadly it doesn't have enough ports for my usage) with an arduino.

The ESP and Arduino communicate via Serial, but the following strings interrupt my communication:

Connected to server version 5.5.57-MariaDB Disconnected.

Is there a way to disable these outputs? I don't need them.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ChuckBell/MySQL_Connector_Arduino/issues/72, or mute the thread https://github.com/notifications/unsubscribe-auth/AH0j4ImtyWeO8SaQm3ziyKJzPAwiXIiIks5ur0ougaJpZM4YNe_c .

At-M commented 5 years ago

I just checked the headerfiles, not the cpp ones ugh.. facepalm

Thanks for your help :)

copterino commented 5 years ago

@At-M, if you use latest version of the library then all Serial prints should be disabled by default. The only way you can enable them is to add #define DEBUG in the head of MySQL_Packet.h. Or, maybe, which is strange, you have somewhere defined DEBUGin the project. Sorry for late answer.