Hi Kas,
Thanks for your suggestions re using delay() after Serial.available() - I changed to using 115200 and everything is fine.
I have one other question, is it possible to use BLE with Joystick bluetooth Commander app ?
When I connect a HM-10 BLE module to the Arduino and try to connection with Joystick bluetooth Commander app I get connection failed.
Thanks again.
kind regards