<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Having trouble with Bluetooth LE on Cardputer]]></title><description><![CDATA[<p dir="auto">I'm developing my software, but noticed one issue I couldn't get rid of. I'm developing in Arduino IDE and using BLE libraries provided by M5Stack package. Even the simplest examples also have this issue.<br />
Program comes down to this:</p>
<ol>
<li>Initialise and start BLE server with onConnect() and onDisconnect() callbacks.</li>
<li>Start advertising BLE device.</li>
</ol>
<p dir="auto">Expected behaviour is: I launch Cardputer, it advertises itself as BLE device, I connect to it.<br />
Actual behaviour: I launch Cardputer, BLE server automatically fires onConnect(), then onDisconnect() (it does it constantly if I advertise when disconnected). But I still can connect to it.</p>
<p dir="auto">I can even get mac address of a supposedly connected device. But my Bluetooth scanner doesn't show this mac, also this mac isn't from Cardputer.</p>
<p dir="auto">I tried changing a lot of parameters, but discovered that not advertising (removing BLEDevice::startAdvertising();) removes this issue. But that means I can't connect to it now.</p>
<p dir="auto">I tried loading the same program on M5StickC Plus2 and it actually works as expected. onConnect() and onDisconnect() don't fire automatically.</p>
<p dir="auto">How do I solve this issue? My Cardputer is basically new.</p>
]]></description><link>https://community.m5stack.com/topic/7169/having-trouble-with-bluetooth-le-on-cardputer</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 02:48:37 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7169.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Jan 2025 11:15:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Having trouble with Bluetooth LE on Cardputer on Fri, 19 Dec 2025 15:00:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi! Have you been able to solve the problem? If so, please tell me how. I am using the ESP32_BLE_KEYBOARD library, and when I connect my PC/phone via Bluetooth (BLE) to my Cardputer on STAMPS3A, it causes the Cardputer to reboot</p>
]]></description><link>https://community.m5stack.com/post/30329</link><guid isPermaLink="true">https://community.m5stack.com/post/30329</guid><dc:creator><![CDATA[quality]]></dc:creator><pubDate>Fri, 19 Dec 2025 15:00:48 GMT</pubDate></item></channel></rss>