Hi Good day. I have an arduino and hc05, I wanted the arduino to serial print when the hc05 is connected or discomnected. Is it possible for the arduino to know if the hc05 is connected or not?
There is a good discussion about using the state pin here
So if I "digitalread" the state pin the value will either be 1 or 0 depending if its connected or not?
Yes, if the module is correctly attached to the board and it is working per spec.
Not everyone has been successful in getting readings from the state pin. Read the referenced thread carefully and look at the images if digitalRead() of the state pin does not indicate the connected state.
Will do. Thank you very much!