Skip to content
Free shipping on orders over ₹5,000 · GST invoice on every order
Total items in cart: 0
Home / Community Forum
TwoElectrons Community · Physical AI Network

Ask. Share. Build. Solve real-world problems together.

A community for developers, engineers, students, makers, product teams and industry experts. Ask technical questions, post requirements, share knowledge, find opportunities and collaborate across electronics, IoT, robotics and Physical AI.

12K+Community members
4.8KQuestions posted
8.2KAnswers shared
650+Experts & contributors
Community Discussions

What developers and engineers are discussing

View all discussions →
18
votes
14 answers

ESP32 disconnects from BLE gateway after 30 minutes

I'm using an ESP32 with a BLE gateway for machine-status monitoring. The connection drops after roughly 30 minutes...

ESP32BLEGatewayIoT
Amit KumarEmbedded Engineer
3 hours ago
11
votes
8 answers

Which UWB module is best for indoor positioning below 30 cm accuracy?

We are developing an indoor asset-tracking solution for a warehouse and evaluating available UWB modules...

UWBRTLSIndoor Positioning
Priya SharmaRobotics Engineer
5 hours ago
9
votes
5 answers

Need an industrial LoRaWAN gateway for 200+ field sensors

Looking for recommendations for a gateway with Ethernet, 4G fallback and reliable outdoor deployment...

LoRaWANIndustrial IoTGateway
Rahul MehtaSolution Developer
Today
7
votes
3 answers

Edge AI board recommendation for machine-vision inspection

Need to run a small object-detection model locally with two industrial cameras and low-latency inference...

Edge AIVision AINVIDIA
Neha SinghAI Developer
Yesterday
Product Requirements

What the community is looking for

Turn product discovery and sourcing questions into structured, actionable requirements.

View all requirements →
Product Requirement2 hours ago

Industrial LoRaWAN gateway for remote energy monitoring

Need Ethernet + 4G, external antenna support and reliable operation in industrial enclosures.

LoRaWAN4GIndustrial
Qty: 25Bengaluru5 responses
View Requirement →
Project RequirementToday

BLE occupancy dashboard for a multi-floor office

Looking for a developer to build a firmware-to-dashboard pipeline for BLE occupancy sensors.

BLEDashboardIoT
Remote3 weeks8 responses
View Requirement →
Component RequirementYesterday

Air-quality sensor with PM2.5 + VOC output

Seeking a compact sensor suitable for indoor environmental monitoring with UART or I2C interface.

Air QualityPM2.5Sensor
Qty: 100Kolkata12 responses
View Requirement →
Post Detail Preview

How an individual discussion can look

ESP32 disconnects from BLE gateway after 30 minutes

18

I'm using an ESP32 connected to a BLE gateway for machine-status monitoring. Everything works correctly at first, but after approximately 30 minutes the ESP32 disconnects and does not reconnect until the device is restarted.

Has anyone experienced this with long-running BLE connections? Is there a recommended connection interval or power-management setting I should check?

BLEDevice::init("MachineSensor");
client->connect(serverAddress);
client->setMTU(185);
ESP32BLEGatewayIoT
3 Answers
24
✓ Accepted

The issue is most likely related to the connection interval combined with power-save behaviour. Start by disabling Wi-Fi power saving if Wi-Fi and BLE are both active, then test with a more conservative BLE interval.

esp_wifi_set_ps(WIFI_PS_NONE);

Also add a reconnect handler rather than relying on the original connection object remaining valid indefinitely.

ESP32BLE

Reply · Comment · Share

Have a question, requirement or idea?

Join developers, makers, experts and companies building real Physical AI products and solutions on TwoElectrons.