<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Connector/Arduino</title>
        <description>Forum for Connector/Arduino</description>
        <link>https://forums.mysql.com/list.php?175</link>
        <lastBuildDate>Tue, 12 May 2026 19:01:51 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?175,690535,690535#msg-690535</guid>
            <title>Issue with update operation in the database table (1 reply)</title>
            <link>https://forums.mysql.com/read.php?175,690535,690535#msg-690535</link>
            <description><![CDATA[ Hello,<br />
<br />
I am facing an issue with update operation in the database table. Sometimes update query is not getting success and the MySql library (MySQL_MariaDB_Generic) on the gateway side is showing the error “MySQL_Packet::read_packet:  ERROR: Timeout waiting for client&quot;. <br />
<br />
I am using the AWS RDS server for the MYSQL database. MYSQL version is 8.0.20. And the query is executed from the ESP32 Wi-Fi module.<br />
<br />
From my gateway application, I am inserting the data in 3 steps for 3 data fields as data size is large (around 10k). First I am inserting a record and then adding more data through the update query. The Insert query is successful every time but the update query fails sometimes even though  I retry 10 times continuously. <br />
<br />
The issue is not happening always. it is happening randomly. Sometimes it is working fine for around 7 to 8 hours before it starts misbehaving again. <br />
<br />
It seems like the server is not responding. For debugging purpose I checked the process list on the Database server by executing the query “show processlist;&quot; and I found that there are multiple processes for the same query with state “updating”. It could be due to multiple retries from the gateway.  I am not able to follow that whether it is expected behavior (multiple same queries with state “updating”) or not.<br />
<br />
We would like to understand why this is happening only sometimes and not always, and how does it recover? Are there any contributing factors from the server-side for this behavior? Are there any configurations that we need to do on our side? Any guidance is appreciated on this.<br />
 <br />
For your information: <br />
<br />
I have used the MySQL_MariaDB_Generic library on the ESP32 Wi-Fi module to send data to the database.  Database table contains 7 data fields like Id,Timestamp,P1,P2,P3,P4,and P5. Here ‘Id ‘ is the primary key and Autoincrement attribute.<br />
<br />
Here datatypes for the data fields P3, P4, and P5 are MEDIUMBLOB.  <br />
<br />
Query to insert data fields Timestamp, P1, P2, P3:     INSERT INTO TabelXYZ(Timestamp, P1, P2, P3)VALUES (&#039;TimestampValue&#039;,&#039;P1Value&#039;,&#039;P2Value&#039;,&#039;P3Value&#039;);<br />
<br />
query to insert data field P4: UPDATE TabelXYZ SET P4 = &#039;P4Value&#039; WHERE Timestamp = &#039;TimestampValue&#039; ORDER BY Timestamp;<br />
<br />
query to insert data field P4: UPDATE TabelXYZ SET P5 = &#039;P5Value&#039; WHERE Timestamp = &#039;TimestampValue&#039; ORDER BY Timestamp;<br />
<br />
Please note that there is no internet connectivity issue here as the insert query is executing OK every time and only the update query is getting failed. <br />
<br />
I am not able to find any root cause behind it.  Let me know if anyone has suggestions/idea about what I am doing wrong.]]></description>
            <dc:creator>Ramesh Damor</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Mon, 12 Oct 2020 15:55:08 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,674872,674872#msg-674872</guid>
            <title>MySQL_Connector with Realtek Ameba WIFI (2 replies)</title>
            <link>https://forums.mysql.com/read.php?175,674872,674872#msg-674872</link>
            <description><![CDATA[ I recently installed MySQL in a Windows environment.<br />
I have extensive db programming experience (long ago), but new to this server setup, admin, etc.<br />
<br />
I can connect to my server using a second computer on my local wifi network, however when I use the same credentials in a Sample Arduino MySQL_connector WIFI sketch, the Ameba connects to the WIFI successfully, but then I receive a message that says &quot;Connect to Server successful!&quot;.<br />
<br />
This message is not coming from the sketch. Furthermore, the program stalls at that point and no additional commands are performed. MySQL Workbench does not show a client connection for the User in the Arduino sketch.<br />
<br />
Combing the internet has not revealed any solutions.<br />
<br />
Thoughts?]]></description>
            <dc:creator>L Prong</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Mon, 20 May 2019 19:05:55 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,674687,674687#msg-674687</guid>
            <title>Arduino IDE and MYSQL_Connector library (2 replies)</title>
            <link>https://forums.mysql.com/read.php?175,674687,674687#msg-674687</link>
            <description><![CDATA[ Question: Is there a limit in the size of query that can be returned using the MYSQL_Connector library for the Arduino IDE?<br />
 <br />
Background: I am trying to access a field in a MYSQL database table which is approx 2Kb in size. I&#039;m using the Arduino MYSQL_Connector library and for testing purposes have simplified the field so that it only contains the character &#039;a&#039;, i.e there are no special characters or escape characters in the data. Experimenting with the field size (i.e no. of characters) results in the following:<br />
<br />
Field size     Returned data size from Query<br />
&lt;=250            &lt;=250<br />
&gt;=251 and &lt;=255  1<br />
=256             0<br />
&gt;256             252 <br />
<br />
In all cases, the query returns the initial characters from the field, anything after character# 252 is being truncated. <br />
<br />
If I run the query using mysql cli client, Dbeaver or MySQL Workbench I get the full field contents returned in the query exactly as expected.<br />
<br />
I&#039;ve read that truncation can occur if charsets between the server and client do not match and have experimented  using different CHARSET and COLLATE options on the server (utf8,utf8mb4, Latin1) etc. but it doesn&#039;t change the output results described above.<br />
<br />
Has anyone else seen this behaviour or know what I am doing wrong?<br />
<br />
<br />
Additional info:<br />
<br />
The test script is pretty much taken straight from the examples that are provided with the library i.e. <br />
-----------------<br />
char query[1000] = &quot;SELECT myData FROM myTable WHERE myId = &#039;esp14c8dd&#039;;&quot;;<br />
<br />
<br />
WiFiClient client;<br />
MySQL_Connection conn((Client *)&amp;client);<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
  WiFi.mode(WIFI_STA);<br />
  WiFi.disconnect();<br />
  delay(100);<br />
  WiFi.begin(ssid, wifiPass);<br />
<br />
  while (WiFi.status() != WL_CONNECTED) {<br />
    delay(1000);  <br />
    Serial.print(&quot;.&quot;);<br />
  }<br />
  Serial.println();<br />
  if (conn.connect(server_addr, 3306, user, password)) {<br />
    delay(1000);<br />
  }<br />
  else<br />
    Serial.println(&quot;Connection failed.&quot;);<br />
}<br />
<br />
<br />
void loop() {<br />
  delay(1000);<br />
<br />
  // Initiate the query class instance<br />
  MySQL_Cursor *cur_mem = new MySQL_Cursor(&amp;conn);<br />
<br />
  // Execute the query<br />
  cur_mem-&gt;execute(query);<br />
  <br />
  delay(2000);<br />
  // Fetch the columns and print them<br />
  column_names *cols = cur_mem-&gt;get_columns();<br />
  for (int f = 0; f &lt; cols-&gt;num_fields; f++) {<br />
    Serial.print(cols-&gt;fields[f]-&gt;name);<br />
    if (f &lt; cols-&gt;num_fields-1) {<br />
      Serial.print(&#039;,&#039;);<br />
    }<br />
  }<br />
  Serial.println();<br />
  // Read the rows and print them<br />
  row_values *row = NULL;<br />
  do {<br />
    row = cur_mem-&gt;get_next_row();<br />
    if (row != NULL) {<br />
      for (int f = 0; f &lt; cols-&gt;num_fields; f++) {<br />
        Serial.println(row-&gt;values[f]);<br />
        Serial.printf(&quot;Size of data is %lu\n&quot;,strlen(row-&gt;values[f]));<br />
        //Serial.println(strlen(row-&gt;values[f]));<br />
        if (f &lt; cols-&gt;num_fields-1) {<br />
          Serial.print(&#039;,&#039;);<br />
        }<br />
      }<br />
      Serial.println();<br />
    }<br />
  } while (row != NULL);<br />
  // Deleting the cursor also frees up memory used<br />
<br />
  delete cur_mem;<br />
} <br />
-------------------------<br />
 <br />
<br />
MySQL Community Server v8.0.15 for Linux on x86_64 <br />
NodeMCU v3 ESP8266<br />
Arduino IDE v1.8.9<br />
MYSQL_Connector library v1.1.1]]></description>
            <dc:creator>Gwyllym Jones</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Mon, 13 May 2019 16:01:28 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,671764,671764#msg-671764</guid>
            <title>Can i use ESP8266-01 with Connector (1 reply)</title>
            <link>https://forums.mysql.com/read.php?175,671764,671764#msg-671764</link>
            <description><![CDATA[ Can i use ESP8266-01 with Connector? How do it?]]></description>
            <dc:creator>ROBSON ANDRADE</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Mon, 13 May 2019 15:56:12 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,667239,667239#msg-667239</guid>
            <title>MySQL 8.0 on ARM64 (no replies)</title>
            <link>https://forums.mysql.com/read.php?175,667239,667239#msg-667239</link>
            <description><![CDATA[ MySQL 8.0 on Oracle Linux on ARM64:<br />
- <a href="https://blogs.oracle.com/wim/oracle-linux-7-for-arm-is-now-generally-available"  rel="nofollow">https://blogs.oracle.com/wim/oracle-linux-7-for-arm-is-now-generally-available</a><br />
- <a href="https://blogs.oracle.com/linux/announcing-the-general-availability-of-oracle-linux-7-for-arm"  rel="nofollow">https://blogs.oracle.com/linux/announcing-the-general-availability-of-oracle-linux-7-for-arm</a><br />
- <a href="https://docs.oracle.com/cd/E52668_01/E97565/html/ol7-features-mysql.html"  rel="nofollow">https://docs.oracle.com/cd/E52668_01/E97565/html/ol7-features-mysql.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Mon, 25 Jun 2018 04:59:39 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,664423,664423#msg-664423</guid>
            <title>Arduino Serial Monitor Dependency (no replies)</title>
            <link>https://forums.mysql.com/read.php?175,664423,664423#msg-664423</link>
            <description><![CDATA[ Thanks to Dr. Bell&#039;s library and documentation, I have achieved my initial goal to log telemetry from a MKR1000 board to a networked MySQL instance while the board is anchored to a desktop. I do not have any calls to the Serial library in my code but, of course, the MySQL connector logs the connection to the Serial Monitor which has to be kept open for this message to be logged. If the Serial Monitor window is not opened on the desktop, the Arduino sketch appears to be hung.<br />
<br />
While I can live with this arrangement (i.e. Arduino board anchored to desktop) for testing purposes, I would really like to run these MKR1000 boards in untethered mode without any ability to display the Serial Monitor window. Unfortunately, when I attempt to do just that, the sketch never logs any INSERTs to the MySQL instance (my only way, to the best of my knowledge, to recognize silently that the sketch is running).<br />
<br />
I need some guidance on how to run the MKR1000 independently with the MySQL Arduino connector fully capable to perform all the operations that Dr. Bell has kindly made available. This issue may be a general Arduino topic but since the initial connection message is from the MySQL Connector I feel that my first attempt should be in this forum. (Of course, my knowledge of Arduino too is very limited!). I feel that the MySQL Connector/Arduino is very powerful and I would like to get with more robust exercises if I am improve my basic understanding of the underlying operations. Thanks.]]></description>
            <dc:creator>Matha Goram</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Fri, 16 Feb 2018 14:13:28 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,662857,662857#msg-662857</guid>
            <title>Poor performance inserting records into a table (4 replies)</title>
            <link>https://forums.mysql.com/read.php?175,662857,662857#msg-662857</link>
            <description><![CDATA[ I am running the  Arduino version of the MySQL connector and noticed it took 13 seconds to post an insert statement into a MySQL table.  The insert statement is:<br />
<br />
INSERT INTO weather_vers1.sensor_reading (measurement, reading, unit_of_measure, sensor_id, metric) VALUES (&#039;T&#039;,73.9,&#039;F&#039;,3237464,0),(&#039;H&#039;,47.4,&#039;RH&#039;,3237464,0),(&#039;P&#039;,28.87,&#039;HG&#039;,3237464,0),(&#039;D&#039;,52.6,&#039;F&#039;,3237464,0)<br />
 <br />
I ran a network trace and found out the ESP8266 is sending the insert statement one character at a time.  Below is a chopped down version of the trace.  Notice the payload length is 1 for all ESP to MySQL conversations while the final response from the server is 53 bytes acknowledging that 4 records were inserted.<br />
<br />
SEQ  Offset     Source          Destination    Prot Payload<br />
1374 25.9254442	ESP-8266	MySql Server	TCP	PayloadLen=1,<br />
1377 25.9767419	MySql Server	ESP-8266	TCP	PayloadLen=0,<br />
1378 25.9789536	ESP-8266	MySql Server	TCP	PayloadLen=1,<br />
1379 26.0391143	MySql Server	ESP-8266	TCP	PayloadLen=0,<br />
1382 26.0411178	ESP-8266	MySql Server	TCP	PayloadLen=1,<br />
1383 26.0420829	MySql Server	ESP-8266	TCP	PayloadLen=53,<br />
<br />
The relevant portions of my code are:<br />
<br />
char* INSERT_SQL = &quot;INSERT INTO weather_vers1.sensor_reading (measurement, reading, unit_of_measure, sensor_id, metric) VALUES (&#039;%s&#039;,%s,&#039;%s&#039;,%d,%d),(&#039;%s&#039;,%s,&#039;%s&#039;,%d,%d),(&#039;%s&#039;,%s,&#039;%s&#039;,%d,%d),(&#039;%s&#039;,%s,&#039;%s&#039;,%d,%d)&quot;;<br />
MySQL_Connection conn((Client *)&amp;client);<br />
if (conn.connect(server_addr, 3306, user, password)) {<br />
	delay(1000);<br />
	Serial.print(&quot;Connection Status: &quot;);<br />
	Serial.println(conn.connected());<br />
}<br />
else<br />
	Serial.println(&quot;Connection failed.&quot;);<br />
<br />
MySQL_Cursor *cur_mem = new MySQL_Cursor(&amp;conn);<br />
<br />
sprintf(query, INSERT_SQL, &quot;T&quot;, tempStr, &quot;F&quot;, id, 0, &quot;H&quot;, humStr, &quot;RH&quot;, id, 0, &quot;P&quot;, presStr, &quot;HG&quot;, id, 0, &quot;D&quot;, dewPointStr, &quot;F&quot;, id, 0);<br />
<br />
cur_mem-&gt;execute(query);<br />
delete cur_mem;<br />
<br />
My question becomes, Is this how the connector is suppose to work or am I doing something wrong?]]></description>
            <dc:creator>Brian Nickels</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Thu, 08 Feb 2018 11:28:40 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,662773,662773#msg-662773</guid>
            <title>Error while insert data Into table (1 reply)</title>
            <link>https://forums.mysql.com/read.php?175,662773,662773#msg-662773</link>
            <description><![CDATA[ Hi,<br />
I am facing error while inserting data into table...<br />
The below is my table structure..<br />
<br />
==================<br />
create table arduino (arvalue double(10,2));<br />
======<br />
<br />
Now when I am trying to insert data from vb.net it is throwing error..<br />
<br />
&quot;Excption: Thrown  You have an error in sql syntax.<br />
===========<br />
But when manually I am trying to insert from mySQL workbench, it is working fine.<br />
<br />
=============<br />
Below is my sql syntax from vb.net.....<br />
<br />
Dim readserialdata As String<br />
        Dim sqlquery As String<br />
        Dim cmd As New MySqlCommand<br />
        readserialdata = myport.ReadLine()<br />
        Label1.Text = readserialdata<br />
        sqlquery = &quot;insert into tab1 values(&quot; &amp; Trim(readserialdata) &amp; &quot;)&quot;<br />
        cmd = New MySqlCommand(sqlquery, cn)<br />
        cmd.ExecuteNonQuery()]]></description>
            <dc:creator>POKHRAJ Das</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Wed, 29 Nov 2017 15:50:23 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,658026,658026#msg-658026</guid>
            <title>CC3000 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?175,658026,658026#msg-658026</link>
            <description><![CDATA[ I see back in 2014 you decided not worth updating code to support this board.<br />
Unfortunately I didn&#039;t do enough research before I saw this topic.<br />
3 years later, is that still the decision?]]></description>
            <dc:creator>Shaun van Wyngaard</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Thu, 06 Jul 2017 13:25:33 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,652039,652039#msg-652039</guid>
            <title>I use MySQL connectorl and after some time it stops. PLEASE HELP (13 replies)</title>
            <link>https://forums.mysql.com/read.php?175,652039,652039#msg-652039</link>
            <description><![CDATA[ Dear gentlemen of the MySQL forum I hope you can help me with this problem<br />
<br />
I am using an arduino atmega2560, a wifi shield and a dust sensor (dsm501a) for a project. I have to translate the measurements from my sensor to a mysql data base. I used the mySQL connector created by Dr. Charles Bell. When I see that the blue DATA led of the wifi shield blinks it is because the data is being translated from the sensor to the mySQL data base. Everything is working fine but suddenly at one point (sometimes 1 hour, sometimes 30 minutes) it stops blinking, my serial monitor paralyzes and no more data is transmitted. Could you please help me? What do I have to do? Do I need to add something in my code? This system is supposed to work 24 hours and the whole time saving the measurements from the sensor therefore it cannot stop.<br />
Please I hope you can help me.<br />
Best regards,<br />
Sebastian Silva P.]]></description>
            <dc:creator>César Sebastián Silva Proaño</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Thu, 20 Apr 2017 17:39:42 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,651831,651831#msg-651831</guid>
            <title>Issue with NULL data in column (4 replies)</title>
            <link>https://forums.mysql.com/read.php?175,651831,651831#msg-651831</link>
            <description><![CDATA[ Good Day, using Arduino MySQL Connector ver 1.0.4 on Adafruit ESP8266 HUZAH. Data table set up with 12 columns, several which allow NULL&#039;s. Code is based upon the &#039;Basic Select Example&#039;. When data returned contains NULL data in a column I get unexpected result shown below:<br />
 <br />
Running SELECT and printing results<br />
<br />
SELECT TimeBased, collFrequency, collDuration, A_Time_HR, A_Time_MIN, B_Time_HR, B_Time_MIN, C_Time_HR, C_Time_MIN, CycleSync FROM mqttData.deviceParms WHERE devID = &#039;1234&#039;<br />
1,3600,25,16,0,?0?0û?1m!???3600,Time_HR, B_Time_MIN, C_Time_HR, C_Time_MIN, CycleSync FROM mqttData.deviceParms WHERE devID = &#039;,234&#039;,ÿ?Ä?ÿ?¼	,?ä?ÿ?$?ÿ?d?ÿ?¤?ÿ?ä?ÿ?$<br />
ÿ?<br />
<br />
If I populate null fields, I get data as expected shown below:<br />
<br />
Running SELECT and printing results<br />
<br />
SELECT TimeBased, collFrequency, collDuration, A_Time_HR, A_Time_MIN, B_Time_HR, B_Time_MIN, C_Time_HR, C_Time_MIN, CycleSync FROM mqttData.deviceParms WHERE devID = &#039;1234&#039;<br />
1,3600,25,16,0,0,0,0,0,1 <br />
<br />
Is this behavior expected?<br />
<br />
Thank you.]]></description>
            <dc:creator>Tony Olivieri</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Tue, 25 Oct 2016 18:19:15 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,647980,647980#msg-647980</guid>
            <title>error 5 (7 replies)</title>
            <link>https://forums.mysql.com/read.php?175,647980,647980#msg-647980</link>
            <description><![CDATA[ Hi Chuck,<br />
<br />
I am running an Arduino project accessing a mysql database, connector version is 1.04ga. This is a nice solution.<br />
<br />
However, I am encountering an &quot;Error: 5 = .&quot; when performing a select query like:<br />
<br />
<br />
SELECT_QUERY [] = &quot;SELECT * FROM plants.preferences WHERE tag = \&quot;%s\&quot;&quot;<br />
<br />
This is not a big issue since the code continues to work, but I would like to know what is the reason.<br />
<br />
Do you have any idea?<br />
<br />
Thank you,<br />
Kurt]]></description>
            <dc:creator>Kurt Bierbaum</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Tue, 19 Jul 2016 12:31:37 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,646293,646293#msg-646293</guid>
            <title>Arduino UPDATE Mysql (6 replies)</title>
            <link>https://forums.mysql.com/read.php?175,646293,646293#msg-646293</link>
            <description><![CDATA[ Dear,<br />
<br />
I need the Arduino make UPDATE in the database, for example:<br />
<br />
When input HIGH the arduino, arduino send number 1 to the database.<br />
When input LOW the arduino, arduino send number 0 to the database.<br />
<br />
Need php program to make this change in mysql or is to make direct connection Arduino -&gt; Database?<br />
<br />
Every connection between Arduino and database is OK and running.<br />
<br />
Thanks.]]></description>
            <dc:creator>Darci CIdade</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Fri, 17 Jun 2016 13:07:33 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,641100,641100#msg-641100</guid>
            <title>Insert data to a remote MySQL server?? (web-host MySQL) (1 reply)</title>
            <link>https://forums.mysql.com/read.php?175,641100,641100#msg-641100</link>
            <description><![CDATA[ I read in the intro paragraphs of the new .pdf (very useful, btw) that the Arduino must be connected to the same Network as the MySQL server.<br />
<br />
Do you have any experience/suggestions/recommendations for connecting to a remote MySQL server? ...like a web-based MySQL database from a web-hosting company like HostGator? <br />
<br />
I would like to Insert the data from my sensors to my web-based MySQL database and then present it as a &quot;live&quot; website to graph the data. This way I can collect data over several months without needing to leave a computer on. And I can access the graphed data from anywhere at anytime via the web.<br />
<br />
Thanks in advance for any input you can give...<br />
<br />
Marmusman]]></description>
            <dc:creator>Marmus man</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Tue, 29 Mar 2016 17:57:08 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,640931,640931#msg-640931</guid>
            <title>Put SELECT result into a variable (no replies)</title>
            <link>https://forums.mysql.com/read.php?175,640931,640931#msg-640931</link>
            <description><![CDATA[ Hello,<br />
<br />
please help me with this (for me) big problem, I&#039;m struggling trying to find a solution with no results.....<br />
<br />
I have this part of code:<br />
<br />
sprintf(query, SELECT_DATA);<br />
      my_conn.cmd_query(query);<br />
      column_names *cols = my_conn.get_columns();<br />
      Serial.println();<br />
      for (int f = 0; f &lt; cols-&gt;num_fields; f++) {<br />
        Serial.print(cols-&gt;fields[f]-&gt;name);<br />
        if (f &lt; cols-&gt;num_fields - 1)<br />
          Serial.print(&#039;,&#039;);<br />
      }<br />
      Serial.println();<br />
      row_values *row = NULL;<br />
      while (row = my_conn.get_next_row()) {<br />
        for (int f = 0; f &lt; cols-&gt;num_fields; f++) {<br />
          Serial.print(row-&gt;values[f]);<br />
          if (f &lt; cols-&gt;num_fields - 1)<br />
            Serial.print(&#039;,&#039;);<br />
        }<br />
        my_conn.free_row_buffer();<br />
        Serial.println();<br />
      }<br />
<br />
It works, I can read from the serial monitor the results of the query, but I don&#039;t know how to put them into a variable...<br />
<br />
any help is much appreciated...<br />
<br />
thank you]]></description>
            <dc:creator>Silvio Pedretti</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Sat, 26 Dec 2015 20:12:26 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,639348,639348#msg-639348</guid>
            <title>Code hangs in cmd_query() (no replies)</title>
            <link>https://forums.mysql.com/read.php?175,639348,639348#msg-639348</link>
            <description><![CDATA[ Hello,<br />
<br />
I have a sketch running on an Adafruit Huzzah ESP8266 board (using ESP8266WiFi.h instead of WiFi.h), collecting some data and sending the data to a MySQL database in my local network, the latter using the mysql_connector. The insert query typically looks like this<br />
<br />
INSERT INTO datalog.datalogmeasdata (UserID,Date,Time,MeasValID,MeasVal) VALUES (1,&#039;2-12-2015&#039;,&#039;10:15:46&#039;,2,436)<br />
<br />
Normally, it takes about 20-25 sec to execute which is quite long but not a problem, the data collected doesn&#039;t change all that fast anyway.<br />
<br />
However, at times the code never returns from the cmd_query() calls and I have to reset the Huzzah to get the sketch running again. This can happen after 15 minutes or after 9 hours, seems quite random to me. The database is still there, that I can check from my local PC.<br />
<br />
Is there way to specify a timeout value for cmd_query() and get it to return an error code when the query fails?<br />
<br />
I have had a look at the code but not in any depth. There seems to be some waiting going on but only if WiFi is not defined (i.e. using Ethernet) which I don&#039;t really understand.<br />
<br />
Anyway, grateful for any suggestions, pointers, ideas :-)<br />
<br />
Regards,<br />
Dag]]></description>
            <dc:creator>Dag Hovden</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Thu, 03 Dec 2015 13:23:18 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,636836,636836#msg-636836</guid>
            <title>MySQL connector arduino (3 replies)</title>
            <link>https://forums.mysql.com/read.php?175,636836,636836#msg-636836</link>
            <description><![CDATA[ Hi <br />
<br />
im having coding problems connecting an temperature sensor too the MySQL.<br />
The trouble is defining the code for the sensor.<br />
it&#039;s the Ds1820 temp sensor.  <br />
<br />
&quot;<br />
  celsius = (float)raw / 16.0;<br />
  fahrenheit = celsius * 1.8 + 32.0;<br />
  Serial.print(&quot;  Temperature = &quot;);<br />
  Serial.print(celsius);<br />
  Serial.print(&quot; Celsius, &quot;);<br />
  Serial.print(fahrenheit);<br />
  Serial.println(&quot; Fahrenheit&quot;);<br />
  char query[64];<br />
  sprintf(query, INSERT_DATA, celsius);<br />
  my_conn.cmd_query(query);<br />
}<br />
&quot;]]></description>
            <dc:creator>Ole Chr Pettersen</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Tue, 01 Dec 2015 19:07:14 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,636480,636480#msg-636480</guid>
            <title>loop speed (2 replies)</title>
            <link>https://forums.mysql.com/read.php?175,636480,636480#msg-636480</link>
            <description><![CDATA[ I would like to use arduino and mysql for a domotic project.<br />
I got it all work, but I find it too slow in the response.<br />
In the sketch I am posting, the SELECT query is done every 1 second.<br />
Is there any way to better the speed?<br />
<br />
Thank you<br />
<br />
<br />
<br />
<br />
<br />
#include &quot;SPI.h&quot;<br />
#include &quot;Ethernet.h&quot;<br />
#include &quot;sha1.h&quot;<br />
#include &quot;mysql.h&quot;<br />
<br />
byte mac_addr[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };<br />
IPAddress server_addr(192, 168, 10, 13);<br />
<br />
Connector my_conn;<br />
<br />
char user[] = &quot;arduino&quot;;<br />
char password[] = &quot;psw&quot;;<br />
int num_fails;<br />
int MAX_FAILED_CONNECTS = 10;<br />
int last_value = 0;<br />
const char QUERY_POP[] = &quot;SELECT last_value FROM test_arduino.sensor WHERE sensor_num = 1&quot;;<br />
char query[128];<br />
<br />
const int relay_pin = 5;<br />
<br />
<br />
void setup() {<br />
  digitalWrite(relay_pin, HIGH);<br />
  pinMode(relay_pin, OUTPUT);<br />
  Ethernet.begin(mac_addr);<br />
  Serial.begin(115200);<br />
  if (my_conn.mysql_connect(server_addr, 3306, user, password)) {<br />
    delay(500);<br />
    Serial.println(&quot;Success!&quot;);<br />
  } else {<br />
    Serial.println(&quot;Connection failed.&quot;);<br />
  }<br />
}<br />
<br />
void soft_reset() {<br />
  asm volatile(&quot;jmp 0&quot;);<br />
}<br />
<br />
void loop() {<br />
  {<br />
<br />
    my_conn.cmd_query(QUERY_POP);<br />
    my_conn.get_columns();<br />
    row_values *row = NULL;<br />
    do {<br />
      row = my_conn.get_next_row();<br />
      if (row != NULL) {<br />
        last_value = atol(row-&gt;values[0]);<br />
      }<br />
    } while (row != NULL);<br />
    my_conn.free_columns_buffer();<br />
    my_conn.free_row_buffer();<br />
<br />
    if (last_value == 1) {<br />
      digitalWrite(relay_pin, LOW);<br />
    } else<br />
      digitalWrite(relay_pin, HIGH);<br />
<br />
  }<br />
}]]></description>
            <dc:creator>Silvio Pedretti</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Mon, 14 Dec 2015 20:33:12 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,636172,636172#msg-636172</guid>
            <title>mysql connector for PIC32 (chipkit) and TI&#039;s arm TIVA C TM4C129 (10 replies)</title>
            <link>https://forums.mysql.com/read.php?175,636172,636172#msg-636172</link>
            <description><![CDATA[ Hello,<br />
<br />
I have ported arduino mysql connector to chipkit ( PIC32 ) and verified that mysql c connector works,also it works  for TI&#039;s arm  TIVA C TM4C129]]></description>
            <dc:creator>Alok Kumar Mishra</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Wed, 16 Mar 2016 09:10:22 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,635159,635159#msg-635159</guid>
            <title>how do I load image(binary) files from mysql server to arduino (3 replies)</title>
            <link>https://forums.mysql.com/read.php?175,635159,635159#msg-635159</link>
            <description><![CDATA[ I have a arduino (DUE and uno) and I am successfully using arduino mysql connector , now want to display image (bmp) files from mysql server, How can I do that, so far I see  it is assumed that strings (which are retrieved)  are null terminated.<br />
<br />
-Thanks<br />
-Alok]]></description>
            <dc:creator>Alok Kumar Mishra</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Tue, 01 Dec 2015 19:17:25 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,634024,634024#msg-634024</guid>
            <title>Read values float from mysql (2 replies)</title>
            <link>https://forums.mysql.com/read.php?175,634024,634024#msg-634024</link>
            <description><![CDATA[ Hello!<br />
I need read a value float from my data base.<br />
I using this code from a example(I changed only the select)<br />
But I could only read the whole of the value and I need the two decimal places<br />
<br />
value displayed in serial monitor = 127<br />
<br />
necessary value = 127.62<br />
<br />
anybody can help me?<br />
<br />
<br />
/**<br />
* Example: Simple Select Example: Hello, MySQL!<br />
*<br />
* This code module demonstrates how to create a simple<br />
* database-enabled sketch with selecting data.<br />
*/<br />
#include &lt;SPI.h&gt;<br />
#include &lt;Ethernet.h&gt;<br />
#include &lt;sha1.h&gt;<br />
#include &lt;mysql.h&gt;<br />
/* Setup for Ethernet Library */<br />
byte mac_addr[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };<br />
IPAddress server_addr(192, 168, 0, 103);<br />
/* Setup for the Connector/Arduino */<br />
Connector my_conn; // The Connector/Arduino reference<br />
char user[] = &quot;operador&quot;;<br />
char password[] = &quot;secret&quot;;<br />
const char QUERY_POP[] = <br />
&quot;SELECT tensao FROM banco.hello WHERE id = (SELECT MAX(id) FROM banco.hello)&quot;;<br />
float head_count = 0;<br />
void setup() {<br />
Ethernet.begin(mac_addr);<br />
Serial.begin(115200);<br />
while (!Serial);<br />
delay(1000);<br />
Serial.println(&quot;Connecting...&quot;);<br />
if (my_conn.mysql_connect(server_addr, 3306, user, password)){<br />
Serial.println(&quot;Connected!&quot;);<br />
my_conn.cmd_query(QUERY_POP);<br />
my_conn.get_columns();<br />
row_values *row = NULL;<br />
do {<br />
row = my_conn.get_next_row();<br />
// We use the first value returned in the row - population of NYC!<br />
if (row != NULL) {<br />
head_count = atol(row-&gt;values[0]);<br />
}<br />
my_conn.free_row_buffer();<br />
} while (row != NULL);<br />
my_conn.free_columns_buffer();<br />
Serial.print(&quot;ultima tensao = &quot;);<br />
Serial.println(head_count);<br />
} else {<br />
Serial.println(&quot;Connection failed.&quot;);<br />
}<br />
}<br />
void loop() {<br />
}]]></description>
            <dc:creator>Denys Oliveira</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Thu, 20 Aug 2015 15:09:44 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,633865,633865#msg-633865</guid>
            <title>Trouble Getting mysql connection. (1 reply)</title>
            <link>https://forums.mysql.com/read.php?175,633865,633865#msg-633865</link>
            <description><![CDATA[ So I&#039;ve been trying to use the connected and I&#039;ve used ipconfig to get my IP address of my database and i&#039;ve entered the following code to try and push a simple &quot;hello&quot; onto my database but I keep getting the message <br />
<br />
Connecting...<br />
Connection failed.<br />
<br />
Here&#039;s my current code.<br />
<br />
/**<br />
* Example: Insert Example: Hello, MySQL!<br />
*<br />
* This code module demonstrates how to create a simple<br />
* database-enabled sketch with inserting data.<br />
*/<br />
#include &quot;SPI.h&quot;<br />
#include &quot;Ethernet.h&quot;<br />
#include &quot;sha1.h&quot;<br />
#include &quot;mysql.h&quot;<br />
/* Setup for Ethernet Library */<br />
byte mac_addr[] = { 0x90, 0xA2, 0xDA, 0x0F, 0x3A, 0xDC }; <br />
IPAddress server_addr(192,168,1,240);<br />
/* Setup for the Connector/Arduino */<br />
Connector my_conn; // The Connector/Arduino reference<br />
char user[] = &quot;ang&quot;;<br />
char password[] = &quot;&quot;;//myset password<br />
char INSERT_SQL[] =<br />
&quot;INSERT INTO test_arduino.hello_arduino (message) VALUES (&#039;Hello, Arduino!&#039;)&quot;;<br />
void setup() {<br />
 Ethernet.begin(mac_addr);<br />
 Serial.begin(115200);<br />
 while (!Serial);<br />
 delay(1000);<br />
 Serial.println(&quot;Connecting...&quot;);<br />
 if (my_conn.mysql_connect(server_addr, 3306, user, password)){<br />
 Serial.println(&quot;Connected!&quot;);<br />
 my_conn.cmd_query(INSERT_SQL);<br />
 Serial.println(&quot;Data inserted.&quot;);<br />
 } else {<br />
 Serial.println(&quot;Connection failed.&quot;);<br />
 }<br />
}<br />
void loop() {<br />
}]]></description>
            <dc:creator>Aaron Ang</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Fri, 14 Aug 2015 14:00:54 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,628101,628101#msg-628101</guid>
            <title>editing database data from arduino (2 replies)</title>
            <link>https://forums.mysql.com/read.php?175,628101,628101#msg-628101</link>
            <description><![CDATA[ Dr. Bell<br />
Thanks for the book, worth every penny! <br />
I&#039;ve spent the last few days working on setting up the pi and arduino, everything is working great! i did get hung up on the &quot;with select&quot; part because i was using querys and editing the my.cnf file (raspberry pi permissions were a pain), just an fyi.  <br />
<br />
So now the arduino is displaying information from a specific cell (in a table) on an lcd screen.... how would i go about updating that specific value, i can add data to a list but not update a specific cell.... any advice? i will work on this tomorrow so i may wind up answering my own question but any help would be great!<br />
<br />
<br />
<br />
for any other beginners out their lookup mysql in excel.... it has been really handy for viewing and creating data for the arduino to edit/lookup. dont have to mess around on the pi plus easy to edit and analyze!<br />
<br />
Thanks everyone]]></description>
            <dc:creator>Jimmy T</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Wed, 18 Feb 2015 18:13:30 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,627279,627279#msg-627279</guid>
            <title>Arduino MySQL Connector Select Query- How to access individual values (2 replies)</title>
            <link>https://forums.mysql.com/read.php?175,627279,627279#msg-627279</link>
            <description><![CDATA[ Hello, <br />
<br />
thanks for this helpfull and usefull Arduino MySQL Connector. <br />
I try to command LEDs on an Arduino board from a HTML page using a PHP script and a MySQL Database. I succeed in updating the MySQL Database, reading it with Arduino board and displaying the pin states on the serial monitor. But I didn&#039;t succeed in accessing the individual pin state. Where is my mistake ?<br />
<br />
Thanks in advance for your help.<br />
<br />
Best regards.<br />
<br />
Here is the concerned part of the code : <br />
<br />
int Pin0, Pin1, Pin2, Pin3, Pin4, Pin5 ; <br />
<br />
.......<br />
<br />
  if (r)<br />
    {<br />
      rows++;<br />
      for (int i = 0; i &lt; num_cols; i++)<br />
      {<br />
        Serial.print(r-&gt;values<i>);<br />
<br />
        if (i == 0) Pin0 = atoi(r-&gt;values[0]) ;<br />
        if (i == 1) Pin1 = atoi(r-&gt;values[1]) ;<br />
        if (i == 2) Pin2 = atoi(r-&gt;values[2]) ;<br />
        if (i == 3) Pin3 = atoi(r-&gt;values[3]) ;<br />
        if (i == 4) Pin4 = atoi(r-&gt;values[4]) ;<br />
        if (i == 5) Pin5 = atoi(r-&gt;values[5]) ;<br />
        else break ;<br />
      }<br />
<br />
      my_conn.free_row_buffer(); // Free the row buffers<br />
    }<br />
  } while (r);<br />
<br />
  Serial.println() ;<br />
  Serial.print(rows);<br />
  Serial.println(&quot; rows in result&quot;);<br />
<br />
  Serial.println(Pin0);<br />
  Serial.println(Pin1);<br />
  Serial.println(Pin2);<br />
  Serial.println(Pin3);<br />
  Serial.println(Pin4);<br />
  Serial.println(Pin5);</i>]]></description>
            <dc:creator>Patrick LAFFORGUE</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Mon, 02 Feb 2015 20:14:19 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,626772,626772#msg-626772</guid>
            <title>Problem building (21 replies)</title>
            <link>https://forums.mysql.com/read.php?175,626772,626772#msg-626772</link>
            <description><![CDATA[ Hi<br />
<br />
Getting this error during build. Any idea?<br />
<br />
In file included from /Users/carl/Documents/Arduino/libraries/sha1/sha1.cpp:3:0:<br />
/Users/carl/Documents/Arduino/libraries/sha1/sha1.cpp:11:25: error: variable &#039;sha1InitState&#039; must be const in order to be put into read-only section by means of &#039;__attribute__((progmem))&#039;<br />
 uint8_t sha1InitState[] PROGMEM = {]]></description>
            <dc:creator>Carl Engman</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Thu, 26 Mar 2015 13:57:27 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,624756,624756#msg-624756</guid>
            <title>stringf and float (4 replies)</title>
            <link>https://forums.mysql.com/read.php?175,624756,624756#msg-624756</link>
            <description><![CDATA[ Hello,<br />
<br />
work the mysql-string only with stringf ?<br />
<br />
i have a lot of float types and i am not sure if i need stringf or ???<br />
<br />
Best regards<br />
Achim]]></description>
            <dc:creator>achim altmann</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Wed, 07 Jan 2015 14:41:48 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,623474,623474#msg-623474</guid>
            <title>SHA problem (1 reply)</title>
            <link>https://forums.mysql.com/read.php?175,623474,623474#msg-623474</link>
            <description><![CDATA[ I&#039;m also new at this...<br />
I&#039;ll be simple...I&#039;m getting this error message <br />
<br />
In file included from /usr/share/arduino/libraries/sha1/sha256.cpp:3:0:<br />
/usr/share/arduino/libraries/sha1/sha256.cpp:8:20: error: variable ‘sha256K’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’<br />
 uint32_t sha256K[] PROGMEM = {<br />
                    ^<br />
/usr/share/arduino/libraries/sha1/sha256.cpp:21:27: error: variable ‘sha256InitState’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’<br />
 uint8_t sha256InitState[] PROGMEM = {<br />
                           ^<br />
<br />
not much ideia of what is it, and kind of afraid of changing files without knowning better what&#039;s happening...<br />
<br />
any ideias? Thanks]]></description>
            <dc:creator>Lucas Lima</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Wed, 12 Nov 2014 14:10:42 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,622708,622708#msg-622708</guid>
            <title>Query Results as String (1 reply)</title>
            <link>https://forums.mysql.com/read.php?175,622708,622708#msg-622708</link>
            <description><![CDATA[ Hi. <br />
<br />
I&#039;m creating a project where I want to interpret the incoming values from a database as blinking lights (morse code). <br />
<br />
I&#039;ve got your example code working, using Example 2, but am having trouble figuring out how to use the results that are printed out in the serial monitor as strings in order to write a conditional to check for specific characters in the string. <br />
<br />
I want to do something like this:<br />
<br />
If (InTheDatabaseResults == ‘character’) {<br />
<br />
blinking code here<br />
<br />
}<br />
<br />
I’ve tried using the Serial.read(r-&gt;values<i>) instead of Serial.print, but get errors. Also writing a conditional like the one above with the r-&gt;values<i>, but that doesn’t work either. <br />
<br />
How can I get/convert the text in order to compare the characters?<br />
<br />
Sorry if the answer is obvious, I just can’t figure this out.</i></i>]]></description>
            <dc:creator>Jon Chambers</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Wed, 29 Oct 2014 18:29:13 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,621813,621813#msg-621813</guid>
            <title>Helps to achieve connect (1 reply)</title>
            <link>https://forums.mysql.com/read.php?175,621813,621813#msg-621813</link>
            <description><![CDATA[ Now I have the information of my sensors, I only need to pass it to mysql. <br />
<br />
This is my try sketch:<br />
<br />
#include &quot;SPI.h&quot;<br />
#include &quot;Ethernet.h&quot;<br />
#include &quot;sha1.h&quot;<br />
#include &quot;mysql.h&quot;<br />
<br />
/* Setup for Ethernet Library */<br />
byte mac_addr[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };<br />
IPAddress ip(192, 168, 1, 10);<br />
IPAddress gw(192, 168, 1, 1);<br />
IPAddress sn(255, 255, 255, 0);<br />
<br />
IPAddress server_addr(192, 168, 1, 3);<br />
<br />
/* Setup for the Connector/Arduino */<br />
Connector my_conn; // The Connector/Arduino reference<br />
<br />
char user[] = &quot;root&quot;;<br />
char password[] = &quot;&quot; ;<br />
char INSERT_SQL[] = &quot;INSERT INTO shop.data VALUES (&#039;Hello, MySQL!&#039;, 77)&quot;;<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
}<br />
<br />
void loop() {<br />
  Ethernet.begin(mac_addr,ip,gw,sn);<br />
  Serial.print(&quot;Local IP is: &quot;);<br />
  Serial.println(Ethernet.localIP());<br />
  delay(1000);<br />
  Serial.println(&quot;Connecting...&quot;);<br />
  if (my_conn.mysql_connect(server_addr, 3306, user, password))<br />
  {<br />
    delay(500);<br />
     /* Write Hello, World to MySQL table test_arduino.hello */<br />
     my_conn.cmd_query(INSERT_SQL);<br />
     Serial.println(&quot;Query Success!&quot;); <br />
  } <br />
  else<br />
    Serial.println(&quot;Connection failed.&quot;);<br />
}<br />
<br />
... But the serial monitor only says:<br />
Connecting...<br />
Connection failed.<br />
<br />
<br />
There is something special to configure the mysql to accept the orders of the connector library?]]></description>
            <dc:creator>Miguel martinez</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Tue, 14 Oct 2014 20:09:41 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?175,621556,621556#msg-621556</guid>
            <title>Packet Error (9 replies)</title>
            <link>https://forums.mysql.com/read.php?175,621556,621556#msg-621556</link>
            <description><![CDATA[ I&#039;m trying to do my first build using this library and am having problems.<br />
<br />
I&#039;m using an Uno R3 with the Ethernet Shield.<br />
<br />
When I try to use your example script, with the correct username/password and IPAddress of my mySQL server, all I get is:<br />
<br />
Connecting...<br />
Packet error.<br />
<br />
<br />
I know I&#039;m getting connected properly, because in my version, I added some extra debugging to the serial output.  Here&#039;s what my script comes up with:<br />
<br />
CurrentMonitor is running at: 10.2.2.40<br />
Connecting...<br />
Packet error.<br />
Packet error.<br />
Error: 255 = .<br />
Connection failed.<br />
Packet error.<br />
Packet error.<br />
Packet error.<br />
Memory error.<br />
<br />
<br />
I can ping the IP of the Uno from another computer (which means it&#039;s on the network) and can also get into the mySQL server from the GUI Workbench using the exact same IPAddress, User, and Password from the computer in which I&#039;m programming the Uno from.<br />
<br />
But like I said, even using your example &quot;mysql_connector_basic&quot;, I get the error as stated above after only changing the mac, IPAddress and user/password.<br />
<br />
So I really don&#039;t think it&#039;s a network issue.<br />
<br />
Any thoughts?]]></description>
            <dc:creator>Bryan Davis</dc:creator>
            <category>Connector/Arduino</category>
            <pubDate>Wed, 26 Nov 2014 16:14:19 +0000</pubDate>
        </item>
    </channel>
</rss>
