This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Feedback Help  RSS feed

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Group!

I have changed the scope of my project and I can successfully connect to the arduino I can send data and receive data just fine. How ever I am having an issue with using the incoming data. Based on the code below I sent a command to the arduino and it acknowledges the command and issues feedback in the form of "OFF and ON". Now I am trying to use the feedback ON/OFF to trigger other events. However that is where I am stuck. Thanks for the help!

 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In what way are you stuck? Please explain exactly what you want to do and what is actually happening.
 
Scott Eric Catalano
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the message printed from the arduino to the console: OFF or ON I would like to trigger an event based on the word: OFF or ON below is the section of code that received the OFF or ON:


How ever if I put any code in there and recompile...I do not get any errors also my action does not occur. Being a perl programmer this type of code does work. I know this is handled differently in Java. Thanks for the help.
 
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!