How to connect a BluetoothClient in an App?

Good evening,
I want to have an Android App connect to a Bluetooth device HC05 or ESP32, so it receives a string of data. I cannot find the BluetoothClient1.connect option available for a When statement. How should I do ? I am quite a newbie here ! Thanks

1 Like

Hi, dear

Welcome to Kodular community,

Anyway what have you tried so far? Any connected block, where are you stuck-up/any issues in your current blocks

Also have you tried searching in the community?

https://community.kodular.io/search?context=topic&context_id=307055&q=Bluetooth%20connection&skip_context=true

Use the Connect method like this

If Connect …
Then connected, receive your data
Else not connected

Taifun

Hi, welcome!
I’ll add to the responses as well :grin:

First, you’ll need to pair manually via Bluetooth (or by using Bluetooth Admin).
Then, using .AddressesAndNames, execute Connect.address(ESP32 address),
and finally, with a Clock, check if there are bytes to receive(BytesAvailableToReceive > 0), if there are, use them through these blocks.
immagine

This chat example by Taifun can help you understand it better.

Thank you to all, I am trying with ChatGPT and it seems better to try using WIFI instead of BT. I spent quite a few hours without finding the proper blocs. I will come back to you later about this one. Thanks again

Hey :waving_hand: sorry for not getting your need’s soon, but asking AI like chatGpt or any other related model will still make things difficult for you. They don’t know anything real in you Kodular creator, they get info that is public from the internet not from experience

So if you you’re facing issues, if you ever face any issues, don’t trust chatGpt or any other. They will make you give up.

So what’s you current problem, where are you stuck. Don’t give up that easily, developer’s never giver up unless they archived