• 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

How do I add manufacturing Data to a ESP32 BLE TX packet ?

Q&A Forum › Category: ESP32 › How do I add manufacturing Data to a ESP32 BLE TX packet ?
0 Vote Up Vote Down
Will Damerell asked 4 days ago

Hi , 
     What I am trying to achieve is to send the Mac, SSID , Password of a network to an ESP client from an ESP server so that they can read it . I have used the example the BLE chapter and yes I can see the ‘Hello World says Neil’ in the unknown characteristic but when  I use the BLE scanner code I can t see  ‘Hello World ‘ . Where do I need to put my data so I can send from one ESP and receive it on the other ?

Question Tags: BLE Data string client to server
8 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 days ago

Hi.
The 7.3 Project in page 404 of the “Learn ESP32 with Arduino IDE” eBook shows how to “send” data from one board to the other.
 
Maybe that project is a better way to understand how to “send” data from one board to the other via BLE.
 
Check that out and let me know if you need further help.
 
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 3 days ago

We also have this project about Wi-Fi provisioning via BLE that might be useful for your application:

– https://randomnerdtutorials.com/esp32-wi-fi-provisioning-ble-arduino/

0 Vote Up Vote Down
Will Damerell answered 3 days ago

Hi Sara,  the Wi-Fi provisioning via BLE is exactly what I wanted and works much better than the approach I was trying to take. Many thanks

0 Vote Up Vote Down
Will Damerell answered 3 days ago

Hi Sara ,  Just realised in the excitement of getting the App to work Im still need to send an additional field, the  target ESP is being used for UDP , the port is fixed but I need to send the IP address of the local PC.  Can I put the IP address in the  Service Key Field and if so can this be passed from the mobile App ? 

0 Vote Up Vote Down
Sara Santos Staff answered 3 days ago

Hi.
I don’t think so.
The service key field is used for Wi-Fi provisioning via Access Point.
I’m not sure how to modify the app to send extra information.
 
An alternative is to set a static IP address to your board or a name on your local network using mDNS.

ESP32 Static/Fixed IP Address


 
Regards,
Sara

0 Vote Up Vote Down
Will Damerell answered 3 days ago

Hi Sara ,  
              Its the other way around ,  I need to send to the ESP32 the host IP,  SSID and password so that it can then connect to the local server via UDP. My original approach was to use a BLE5 setup and add the values to the manufacturing data but I cant find any examples that compile for the ESP32-S3 , the other method I was considering was to use WiFi Manager Lite but that also wont compile for an ESP-S3 so Im running out of ideas .

0 Vote Up Vote Down
Will Damerell answered 3 days ago

Hi Sara,
              OK I can use the mobile App approach , as the ESP gets an IP address which I can  send back with last byte as 255 and my UDP listener on the host PC will pick it up as Im using a fixed port.  I would prefer to use the WiFi Manager route as it mean s I dont need a mobile App, are  there any versions that you know of either Lite or standard that compile on an ESP-S3 all the ones I can find work on older hardware even say they are compatable with an S3 but on compile error satying they are only to be used with a ESP8266.  
Many thks 
Will

0 Vote Up Vote Down
Will Damerell answered 3 days ago

I ve finally found a version that works with the ESP32-S3 so will be using WiFi  Manager , many thanks for your help 
Will 

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] Smart Home with Raspberry Pi, ESP32, and ESP8266 V1.6 September 9, 2025
  • [eBook Updated] Learn LVGL: Build GUIs for ESP32 Projects – Version 1.5 July 7, 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.