i have an hc05 bluetooth module in which i want to transmit a value in char to the other bluetooth module in order to make a traffic light on the same direction go green and the other to red.but i cannot do it normally because the code does not take my event(which is the button press).i want to make an interept to read serial data if i sent anything to the bluetooth otherwise do the normal traffic light thingy.i have a code please look at it.i don't know what to do.please help me.
recieve_crash.ino (2.69 KB)
trans_crash.ino (473 Bytes)