Hi everyone,
I have an Arduino Uno R3 with a HC-06 Bluetooth module attached. Now I wanted to use AI2 to build an app which would send commands from Android 4.4.4 to the HC-06/Arduino.
The Arduino/HC-06 is fully functional and working well when sending data from my MacBook to the module. The AI2 app is also functional when sending data to my MacBook, however, when I pair the HC-06 with my Android device and try to use the AI2 app the connection will always fail resulting in error 507.
I used the search function/Google and found a few solutions which all did not work for me.
http://puravidaapps.com/btchat.php suggested retrying until the connection would be established, but this isn't happening. I also tried rewriting the app using a timer to reestablish (call BTClient1.connect address) a bluetooth connection every 5 sec, but this isn't working either. Initially I had the connection attempt on Screen.initialize, which failed in the same manner.
Some suggested using an earlier Android version, so I tried 4.1.2 and 4.0.4, but the error persisted.
Setting BTClient.secure to boolean true or false has no effect on the error.
Any other suggestions on how I can bring Android 4.4.4 AI2 apk to play nice with my HC-06?
Best regards.