B4R Question Bluetooth-Example to communicate with Android

Are you monitoring the logs?

See the code in the starter service. You need to change the device name:
Code: Copy
Private Sub admin_DeviceFound (Name As String, MacAddress As String)
   Log($"Device found: ${Name}"$)
   If Name = "HC-05" Then '<-------------------------------------
     Log("Trying to connect...")
     admin.CancelDiscovery
     serial.Connect(MacAddress)
   End If
End Sub
 
Upvote 0
Are you monitoring the logs?

See the code in the starter service. You need to change the device name:
Code: Copy
Private Sub admin_DeviceFound (Name As String, MacAddress As String)
   Log($"Device found: ${Name}"$)
   If Name = "HC-05" Then '<-------------------------------------
     Log("Trying to connect...")
     admin.CancelDiscovery
     serial.Connect(MacAddress)
   End If
End Sub

Thanks, now it works :-)
another question: is ther a possibility to handle more than one arduino devices with HC-06 ??
 
Upvote 0

Similar Threads

Replies
6
Views
3K
  • Locked
  • Article Article
Replies
36
Views
57K
  • Locked
  • Article Article
B4R Tutorial UDP Communication
Replies
15
Views
19K
Back
Top