- Thu Mar 20, 2014 10:11 am
#169582
The Goal:
I am trying to get the arduino (uno) to detect if the bluesmirf (silver) is connected or not by reading the status messages sent through serial (%CONNECT or %DISCONNECT)
What I've done:
Using the AT Command SO I have turned on "status messages" which sends a %CONNECT or %DISCONNECT string to the local serial port everytime the bluesmirf makes a connection or loses a connection.
The Problem:
I cannot figure out how to read those two different strings (%CONNECT/%DISCONNECT)
Side Notes:
I need the arduino to read either %CONNECT or %DISCONNECT and make a decision based on either finding.
Any help at all or a point in the correct direction would amazing. Thanks.
I am trying to get the arduino (uno) to detect if the bluesmirf (silver) is connected or not by reading the status messages sent through serial (%CONNECT or %DISCONNECT)
What I've done:
Using the AT Command SO I have turned on "status messages" which sends a %CONNECT or %DISCONNECT string to the local serial port everytime the bluesmirf makes a connection or loses a connection.
The Problem:
I cannot figure out how to read those two different strings (%CONNECT/%DISCONNECT)
Side Notes:
I need the arduino to read either %CONNECT or %DISCONNECT and make a decision based on either finding.
Any help at all or a point in the correct direction would amazing. Thanks.