Need Help! (Error 507: Unable to connect. Is the device turned on?)

My set up:
Arduino Mega, HC-05 bluetooth module, Xiaomi A2 Lite

I am currently facing an issue connecting to the bluetooth module using the MIT app inventor.
Help is much appreciated.


  • Don't send text if not connected
  • Don't expect a response to arrive immediately after sending a request. Leave a note to yourself in a global variable telling you what to expect when the data arrives, and do your reads and interpretations only in the Clock Timer.