Skip to content

SerialToSerialBTM with Password Pairing? #6015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Manasmw01 opened this issue Dec 13, 2021 · 6 comments
Closed

SerialToSerialBTM with Password Pairing? #6015

Manasmw01 opened this issue Dec 13, 2021 · 6 comments
Labels
Area: BT&Wifi BT & Wifi related issues Resolution: Duplicate Issue is a duplicate of another issue

Comments

@Manasmw01
Copy link

I wanted to use the SerialToSerialBTM code with the password pairing feature.
Here's the LINK
I can see a lot of tutorials for Bluetooth password pairing in esp-idf, but not for Arduino IDE.
I'm in a hurry and there's no time to learn esp-idf settings and stuff.
If someone has tried it already, please help me out.

@st3m0r
Copy link

st3m0r commented Dec 13, 2021

As far as I know you need to use arduino as component and disable ssp

@Manasmw01
Copy link
Author

I tried that, but it works only with ESP IDF v4.4 I guess. And was asking for a lot of updates.
I tried another method which is somehow working.

@Manasmw01
Copy link
Author

I've tried something and created a new issue. Please follow that: LINK

@SuGlider
Copy link
Collaborator

Try calling setPin() before begin().

void setup() {
  Serial.begin(115200);
  SerialBT.setPin(pin);    // setPin() shall come before begin()
  SerialBT.begin("ESPBT", true); 
  Serial.println("The device started in master mode, make sure remote BT device is on!");
  
  connected = SerialBT.connect(address);
  
  if(connected) {
    Serial.println("Connected Succesfully!");
  } else {
    while(!SerialBT.connected(10000)) {
      Serial.println("Failed to connect. Make sure remote device is available and in range, then restart app."); 
    }
  }
}

@VojtechBartoska
Copy link
Contributor

VojtechBartoska commented Apr 7, 2022

Hello @Manasmw01, can we close this one a follow this issue in your second one #6061?

@VojtechBartoska VojtechBartoska added Resolution: Awaiting response Waiting for response of author Area: BT&Wifi BT & Wifi related issues labels Apr 7, 2022
@Manasmw01
Copy link
Author

Yes, we can. Refer to #6061.

@VojtechBartoska VojtechBartoska added Resolution: Duplicate Issue is a duplicate of another issue and removed Resolution: Awaiting response Waiting for response of author labels Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: BT&Wifi BT & Wifi related issues Resolution: Duplicate Issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants