reliable indicator for out of range? #28
Description
hi,
at first, thank you for the great library!
i want to use this to remote control a toy car or robot.
i just tried out the example PS4SendData.ino
and noticed, when i reach the maximum range of the bluetooth communication, i receive on the log the following message each time the PS4.sendToController()
method fails:
E (1052482) PS4_L2CAP: [ps4_l2cap_send_hid] sending command: failed
then i realized that PS4.isConnected()
is not a good indicator to see that i am just out of range with my PS4 controller, because it still gives true
in that situation.
using this error message would be mutch better as an indicator when i am just out of range.
unfortunately PS4.sendToController()
isn't giving any return value/error code. would it be possible to pass through the error value so that it is possible to react to an error?
or is there another better way to see when the PS4 controler is just out of range?