Hello.
I have an application that communicates with a Raspberry pi using Bluetooth serial. I have a routine on the Pi that sends a (serial) message to report a task is complete and my B4a app receives the message and vibrates the phone (a long vibrate) so I can tell when the task is complete even if the phone is in my pocket. However if the task take long enough for my screen to turn off I don't get the vibrate alert. Using:
My phone screen turns on but only to the lock screen, not the application and the vibrate doesn't happen, even though it is part of the same subroutine that wakes the phone. I don't really need to look at the phone, just feel the vibration.
Any suggestions?
I have an application that communicates with a Raspberry pi using Bluetooth serial. I have a routine on the Pi that sends a (serial) message to report a task is complete and my B4a app receives the message and vibrates the phone (a long vibrate) so I can tell when the task is complete even if the phone is in my pocket. However if the task take long enough for my screen to turn off I don't get the vibrate alert. Using:
B4X:
Dim awake As PhoneWakeState
awake.KeepAlive(True)
Any suggestions?