Arduino+HC05 -> Android

rabbitBUSH

Well-Known Member
Licensed User
Longtime User
I wasn't sure where to post this. SO if its obvious to you guys that it should be in B4A/Android Questions or B4R questions, then, apologies. It seems, though, more of a general thought to me.

Example used
In the example I was reading, @Erel shows how to turn an LED on the Arduino ON/OFF from an Android device via BT.

Hence, the Android instructs the Arduino what to do.

So my question is : (and it may turn out to be a silly one) Can one get the Arduino to Instruct the Android what to do. This would be via BT and obviously (this time) the Android would have to be programmed to listen for a message from the Arduino, then parse it and act accordingly.

In principle, that seems fine and do-able -> If it can be done, then, what are the suggestions about how/methods?
 

hatzisn

Expert
Licensed User
Longtime User
Hi @rabbitBUSH, the Arduino sends the millis with the asyncstream so it could also send what ever you wish to instruct the android what to do. The Android will get the command and act accordingly to what it will receive. I would place the communications in a service which would run foreground and also with the phone wake state relative command to ensure communication even in sleep mode of the android.
 
Last edited:
Top