MySQL Forums :: Connector/Arduino :: Query Results as String

Advanced Search

Query Results as String
Posted by: Jon Chambers ()
Date: October 25, 2014 05:16PM


I'm creating a project where I want to interpret the incoming values from a database as blinking lights (morse code).

I'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.

I want to do something like this:

If (InTheDatabaseResults == ‘character’) {

blinking code here


I’ve tried using the>values) instead of Serial.print, but get errors. Also writing a conditional like the one above with the r->values, but that doesn’t work either.

How can I get/convert the text in order to compare the characters?

Sorry if the answer is obvious, I just can’t figure this out.

Options: ReplyQuote

Subject Views Written By Posted
Query Results as String 1718 Jon Chambers 10/25/2014 05:16PM
Re: Query Results as String 866 Charles Bell 10/29/2014 12:29PM

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.