• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Serial to Serial Bluetooth

Q&A Forum › Category: ESP32 › Serial to Serial Bluetooth
0 Vote Up Vote Down
ChinGuan Quek asked 2 years ago

Hi,
In reviewing the code from File > examples > BluetoothSerial >SerialtoSerialBT, i observe that the book example has additional line  of codes:
Line-9: // define UES_PIN // Uncomment this to use PIN during Pairing. The pin is specified on the line below
Line-10: const char *pin = “1234”; // change this to more secured PIN 
Line-12: String device_name = “ESP32-BT-Slave”;
My interest on the use of password. 
I could not connect to the device when line-9 was uncommented. I thought the Serial Bluetooth Terminal on an  mobile android would need to input the pin to enter into pairing with the server.
I could find the menu on the android app to enter the pin.
How di I use this feature?
Please also review line-28 of the current example :
//Serial,printf(“The device with the name……..   ……. SerialBT.getMacString()); // Use this after MAC method is implemented.
What is this feature and how to use it?

Question Tags: Serial to Serial Bluetooth PIN
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
I think you need to go to your smartphone bluetooth settings first, find the ESP32 device, try to pair with it using the password.
Only after that, you can connect to it using the app.
Let me know if this helps.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.