B4R Question esp32 bluetooth host

peacemaker

Expert
Licensed User
Longtime User
Hi, All

Are we able to make a BT host receiver from ESP32 connected to a USB of PC ?
Just BT to COM-port bridge, to receive any serialized data from other ESP32-BT-device sources.
 
Initialize an asyncstream in the stream of the serial object and write to it. For the reverse way see in my signature the rDebug.b4xlib in my contributions.
 
Upvote 0
Initialize an asyncstream in the stream of the serial object and write to it. For the reverse way see in my signature the rDebug.b4xlib in my contributions.

B4X:
Sub Process_Globals
    Public Serial1 As Serial
    Private astream As AsyncStreams
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    astream.Initialize(Serial1.Stream, "astream_NewData", "astream_Error")
    Log("AppStart")
    astream.Write("I am a stream".GetBytes)
End Sub

Private Sub astream_NewData (Buffer() As Byte)
   
End Sub

Private Sub astream_Error
   
End Sub
 
Upvote 0
Thanks, but how to get BT data first from BT interface?
 
Last edited:
Upvote 0
I do not know. I've never tried it. Although I have an ESP32CAM I just used it a few times and have put it aside never going deeper with it... What about Google?

Searching I found this... Exactly what you need.
 
Upvote 0

Similar Threads

Back
Top