Hi, I made an app con control a car via bluetooth with the accelerometer,
.
My problem resides when I try to connect to the bluetooth modules (HC-06) the app crashes.
The screen displays the acceleration for the 3 axis and a coded message that is sent to the bluetooth and then interpreted via software (the message is such as: s500m300, s for servo and m for motor).
I tried disabling the labels that displayed the information and it worked, but I don't understand why it crashes ONLY after connected to the bluetooth module (and connection is succesful).
If the module isn't connected the axis refresh normally and I can see the accelerations changing in real time and the message being updated.
Thanks in advance.
Screenshots of the app code: