<?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[How to set MTU for BLEUARTClient]]></title><description><![CDATA[<p dir="auto">Hello, I am trying to receive data on a Core2 that I am sending from an Atom S3 Lite.</p>
<p dir="auto">On the S3, I send the data via BLE server with a simple ‘write’ and I can read the data on a smartphone.</p>
<p dir="auto">When I establish a connection on the Core2 as a BLE client, the connection works, but with ‘read’ I only get the first 20 characters of the sent data.</p>
<p dir="auto">This is probably normal for BLE connections, but I get the full length on the smartphone, so sending is not the problem. Normally, you can set an MTU on the receiving side. However, the ‘set_mtu’ command does not seem to exist on the Core2.</p>
<p dir="auto">The ‘new’ library contains this ‘set_mtu’ command.</p>
<p dir="auto">HOW can you set the MTU on the Core2 BLE client?</p>
]]></description><link>https://community.m5stack.com/topic/7899/how-to-set-mtu-for-bleuartclient</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:43:00 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7899.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Nov 2025 09:32:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to set MTU for BLEUARTClient on Fri, 21 Nov 2025 09:31:04 GMT]]></title><description><![CDATA[<p dir="auto">After many try and more than many errors .. I´m able to reveive 256 bytes instead of 20 .. but in these 256 bytes are only 20 byte long pieces of the original message.</p>
<p dir="auto">Send thee lines like "ab&lt;30 characters long&gt;/r/n"</p>
<p dir="auto">Receive 60 bytes like "ab..&lt;only first 20 bytes&gt;ab..&lt;only first 20 bytes&gt;ab..&lt;only first 20 bytes&gt;"</p>
<p dir="auto">And my Smartphone receives the full sent characters seperated like "ab&lt;30 characters long&gt;/r/n", "ab&lt;30 characters long&gt;/r/n", "ab&lt;30 characters long&gt;/r/n"</p>
<p dir="auto">I ended now up with chunking my message into 20 byte pieces before sending and putting the message together after receiving.</p>
]]></description><link>https://community.m5stack.com/post/30219</link><guid isPermaLink="true">https://community.m5stack.com/post/30219</guid><dc:creator><![CDATA[mchott]]></dc:creator><pubDate>Fri, 21 Nov 2025 09:31:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to set MTU for BLEUARTClient on Tue, 18 Nov 2025 10:22:31 GMT]]></title><description><![CDATA[<p dir="auto">Btw:</p>
<p dir="auto">The BLE server can send and receive long messages.</p>
<p dir="auto">The BLE client can send long messages, but has this limitation for received messages.</p>
]]></description><link>https://community.m5stack.com/post/30202</link><guid isPermaLink="true">https://community.m5stack.com/post/30202</guid><dc:creator><![CDATA[mchott]]></dc:creator><pubDate>Tue, 18 Nov 2025 10:22:31 GMT</pubDate></item><item><title><![CDATA[Reply to How to set MTU for BLEUARTClient on Tue, 18 Nov 2025 10:07:27 GMT]]></title><description><![CDATA[<p dir="auto">I have now tested the ‘new’ BLE Brick, and although it has an MTU command, the following error occurs:</p>
<p dir="auto">Traceback (most recent call last):<br />
File ‘&lt;stdin&gt;’, line 27, in ble_client_on_connected_event<br />
File ‘m5ble/m5ble.py’, line 556, in set_mtu<br />
ValueError: Not connected to a server</p>
<p dir="auto">I set the MTU within the ‘ble_client_on_connected_event’ function, which is only called after connecting to the server, and I can both read and write with the server.</p>
]]></description><link>https://community.m5stack.com/post/30201</link><guid isPermaLink="true">https://community.m5stack.com/post/30201</guid><dc:creator><![CDATA[mchott]]></dc:creator><pubDate>Tue, 18 Nov 2025 10:07:27 GMT</pubDate></item></channel></rss>