I can not get the android 6.0 application to communicate with the MEGA 2560 board using the bluethoot HC06.
I have proved that the communications of the bluethoot are well using a serial monitor, both in the cell phone and on the pc. I have communicated directly to the mobile without passing through the 2560, the application sends the commands correctly and the bluethoot transmits and receives the data well. I connected the pins of the bluethoot to the plate as shown in the diagrams, pin tx BT to rx1 (18) and pin rx to tx1 (19) and power.
I have also tried the application that is in test in play store.
Aplication
sketch (load onstep)