GMan Well-Known Member Licensed User Longtime User Aug 4, 2020 #1 Based on this thread i downloaded the sample and installed it. After establishing a connection a Message was raised that the connection is broken. This happens always. Tried it with several other bluetooth apps, all work fine. Where could be the problem with this ?
Based on this thread i downloaded the sample and installed it. After establishing a connection a Message was raised that the connection is broken. This happens always. Tried it with several other bluetooth apps, all work fine. Where could be the problem with this ?
Erel B4X founder Staff member Licensed User Longtime User Aug 4, 2020 #2 What are you connecting to? It will only work if you ran the example on two devices. Upvote 0
GMan Well-Known Member Licensed User Longtime User Aug 4, 2020 #3 I connect to an Arduino with BT - normally works fine to receive and send data. maybe Android 9 is the problem ? Upvote 0
I connect to an Arduino with BT - normally works fine to receive and send data. maybe Android 9 is the problem ?
Erel B4X founder Staff member Licensed User Longtime User Aug 4, 2020 #4 GMan said: . maybe Android 9 is the problem ? Click to expand... No. The Bluetooth chat example will only work if you ran it on two devices and connect each other. Arduino example: https://www.b4x.com/android/forum/threads/hc-05-classic-bluetooth.66677/#content Tip: don't use AsyncStreams in prefix mode unless both sides of the connection implement the prefix protocol. Upvote 0
GMan said: . maybe Android 9 is the problem ? Click to expand... No. The Bluetooth chat example will only work if you ran it on two devices and connect each other. Arduino example: https://www.b4x.com/android/forum/threads/hc-05-classic-bluetooth.66677/#content Tip: don't use AsyncStreams in prefix mode unless both sides of the connection implement the prefix protocol.
GMan Well-Known Member Licensed User Longtime User Aug 4, 2020 #5 tried that sample already....the spinner keeps spinning. but the name of the device is shown. But no autoconnect...solved this some years ago with our help, but forgot it Upvote 0
tried that sample already....the spinner keeps spinning. but the name of the device is shown. But no autoconnect...solved this some years ago with our help, but forgot it