Re: Reconnecting to mysql connector
It sounds like you may not have edited the mysql.h file correctly. ;) Here is an excerpt. Note how I added the disconnect() method here.
...
class Connector
{
public:
Connector();
boolean mysql_connect(IPAddress server, int port,
char *user, char *password);
boolean cmd_query(const char *query);
boolean cmd_query_P(const char *query);
int is_connected () { return client.connected(); }
void disconnect();
...
Also, you may have to exit the IDE and reopen it for it to pick up the new class definition.
Subject
Views
Written By
Posted
14737
November 01, 2013 01:10AM
3883
November 01, 2013 10:22PM
3565
November 06, 2013 06:48AM
3063
November 06, 2013 09:35AM
Re: Reconnecting to mysql connector
3254
November 07, 2013 08:47AM
2805
November 11, 2013 02:03PM
4134
December 18, 2013 01:48PM
3092
December 18, 2013 03:48PM
3156
December 29, 2013 09:48AM
2656
December 30, 2013 03:15PM
2664
December 31, 2013 11:50AM
2864
January 06, 2014 01:59PM
2618
February 04, 2014 03:45PM
2571
February 04, 2014 04:20PM
2760
February 05, 2014 01:15PM
3557
February 05, 2014 02:36PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.