B4J Tutorial [IoT][RPi] - Raspberry Pi Bluetooth Tutorial - Erel Nov 10, 2015 (7 reactions) Run the attached example and monitor the logs. You can enable debug logs with this line:
SetSystemProperty("bluecove.debug", "true")
Assuming that everything works properly then you should see the MAC address in the logs.
You can use this address to connect from the Android device B4A Tutorial Android Bluetooth / BluetoothAdmin Tutorial - Erel Aug 31, 2020 (17 reactions) The second button sends an intent to the OS to make the device discoverable and then calls Serial.Listen.
Once a connection is established:
1. AsyncStreams is initialized in prefix mode (see the AsyncStreams tutorial for more information).
2. The ChatActivity is started.
https://www.b4x.com/basic4 B4A Tutorial [B4X] [B4XPages] What exactly does it solve? - Erel Jul 22, 2020 (49 reactions) You can see how the Bluetooth chat example became much simpler Old: https://www.b4x.-bluetooth-bluetoothadmin-tutorial.14768/#content New: https://www.b4x.-bluetooth-chat-example.119014/#content With that said, no one is forced to switch to B4XPages. Everything will continue to work exactly as bef B4A Tutorial [B4XPages] Bluetooth Chat Example - Erel Jun 22, 2023 (24 reactions) 95662
Updated implementation, based on B4XPages of https://www.b4x.-bluetooth-bluetoothadmin-tutorial.14768/#content.
The code is much simpler compared to the previous example.
Note that you can call Serial.Listen without making the device discoverable. This is useful for cases where the devices w B4R Tutorial HC 05 Classic Bluetooth - Erel Apr 08, 2019 (10 reactions) AsyncStreamsText will cut the message here
End Sub
Sub AStream_NewData (Buffer() As Byte)
For i = 0 To Buffer.Length - 2 Step 2
Dim ledNumber As Byte = Buffer(i)
Dim value As Boolean = Buffer(i + 1) = 1
leds(ledNumber).DigitalWrite(value)
Next
End Sub B4A Question sending text via Bluetooth - B4Chat tutorial - interesting behavior - DonManfred (first post) Jun 02, 2020 (1 reaction) This is how AsyncStreams work.
You can capture the packets and add the bytes to a buffer. try to find the string when you receive a end of line. B4A Tutorial Erels B4A Oveview from Walt's B4xGoodies - created with B4xgoodies Explorer using BVAD3 - Mashiane (first post) Apr 27, 2021 (1 reaction) Safe Apk Installation Tutorial - Bluetooth - Android Bluetooth / Bluetoothadmin Tutorial Tutorial - Bluetooth - Discovering Ibeacon Devices With Ble2 Library Tutorial - Bluetooth - Walkie Talkie - Audio Streaming Over Wifi Or Bluetooth Tutorial - Camera - Camera2 - Still Images And Videos Tutorial - Italian Stampante Bluetooth - nonno (first post) Mar 20, 2022 modificato questo tutorial BluetoothPrinter_v2.0 B4A Question Bluetooth targetsdk=28 - Erel (first post) Apr 12, 2020 (1 reaction) The relevant tutorial is this one: https://www.b4x.-bluetooth-bluetoothadmin-tutorial.14768/#content targetSdkVersion is set to 26 here. It should work with 28 as well. B4A Tutorial Android Serial tutorial - Erel Apr 04, 2018 (6 reactions) If it is not enabled we ask the user to enable it. Note that by putting this code in Activity_Resume (and not Activity_Create) this test will happen every time the activity is resumed. So if the user goes to the settings screen, enables the device and then returns to our application we will now know Page: 1 2 3 4 5 6 7 Powered by ColBERT |