Query Results as String
Hi.
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 Serial.read(r->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.
Subject
Views
Written By
Posted
Query Results as String
3418
October 25, 2014 05:16PM
1885
October 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.