<?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[Incompatibility with BluetoothSerial library on LilyGo T-Display-S3]]></title><description><![CDATA[<p dir="auto">i am working on similar project and when i attempting to use the BluetoothSerial library with the LilyGo T-Display-S3 board results in compilation errors. The same code compiles and runs as expected on a standard ESP32 board, indicating the issue is specific to the LilyGo T-Display-S3 board.</p>
<p dir="auto">Here is the code:</p>
<p dir="auto">#include "BluetoothSerial.h"</p>
<p dir="auto">BluetoothSerial SerialBT; // Object for Bluetooth</p>
<p dir="auto">void setup() {<br />
Serial.begin(115200); // Start the built-in serial port, possibly to communicate with the host computer<br />
<a href="//SerialBT.begin">//SerialBT.begin</a>("ESP32test"); // Start BluetoothSerial with the name "ESP32test"</p>
<p dir="auto">Serial.println("Bluetooth device is ready to pair");<br />
}</p>
<p dir="auto">void loop() {<br />
if (SerialBT.available()) { // Check if we receive anything from Bluetooth<br />
Serial.write(SerialBT.read()); // Send what we receive to the built-in serial port<br />
}</p>
<p dir="auto">if (Serial.available()) { // Check if anything is coming from the built-in serial port<br />
SerialBT.write(Serial.read()); // Send what we receive to Bluetooth<br />
}<br />
}</p>
<p dir="auto">Here is the error:</p>
<p dir="auto">c:/users/talha/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL8_stop_btv+0x18): undefined reference to esp_spp_disconnect' c:/users/talha/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL8_stop_btv+0x1c): undefined reference to esp_spp_deinit'<br />
c:/users/talha/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function _stop_bt()': C:\Users\Talha\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\BluetoothSerial\src/BluetoothSerial.cpp:714: undefined reference to esp_spp_disconnect'<br />
c:/users/talha/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\Talha\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\BluetoothSerial\src/BluetoothSerial.cpp:715: undefined reference to `esp_spp_deinit'<br />
collect2.exe: error: ld returned 1 exit status<br />
exit status 1<br />
Error compiling for board LilyGo T-Display-S3.</p>
]]></description><link>https://www.community.lilygo.cc/topic/788/incompatibility-with-bluetoothserial-library-on-lilygo-t-display-s3</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 05:46:59 GMT</lastBuildDate><atom:link href="https://www.community.lilygo.cc/topic/788.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Nov 2023 18:48:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Incompatibility with BluetoothSerial library on LilyGo T-Display-S3 on Wed, 08 Nov 2023 19:51:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://www.community.lilygo.cc/uid/1466">@thebeardedgarage</a> Good to know!<br />
Thanks -Terry</p>
]]></description><link>https://www.community.lilygo.cc/post/1391</link><guid isPermaLink="true">https://www.community.lilygo.cc/post/1391</guid><dc:creator><![CDATA[teastain2]]></dc:creator><pubDate>Wed, 08 Nov 2023 19:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to Incompatibility with BluetoothSerial library on LilyGo T-Display-S3 on Wed, 08 Nov 2023 19:43:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://www.community.lilygo.cc/uid/612">@teastain2</a><br />
Thanks Terry, what im finding is esp32-s3 doesnt support classic bluetooth like bluetoothserial. Looks like you have to use BLE on the S3</p>
]]></description><link>https://www.community.lilygo.cc/post/1390</link><guid isPermaLink="true">https://www.community.lilygo.cc/post/1390</guid><dc:creator><![CDATA[thebeardedgarage]]></dc:creator><pubDate>Wed, 08 Nov 2023 19:43:39 GMT</pubDate></item><item><title><![CDATA[Reply to Incompatibility with BluetoothSerial library on LilyGo T-Display-S3 on Wed, 08 Nov 2023 19:31:21 GMT]]></title><description><![CDATA[<p dir="auto">Well I get the same results on my setup!<br />
So i'm sorry but use this as you may!</p>
<p dir="auto">BTW Did you know that you can use three "`" single back quotes at the start of your code-paste to create this cool effect of your code?<br />
Also put three of them at the end.</p>
<pre><code>#include "BluetoothSerial.h"

BluetoothSerial SerialBT; // Object for Bluetooth

void setup() {
Serial.begin(115200); // Start the built-in serial port, possibly to communicate with the host computer
//SerialBT.begin("ESP32test"); // Start BluetoothSerial with the name "ESP32test"

Serial.println("Bluetooth device is ready to pair");
}

void loop() {
if (SerialBT.available()) { // Check if we receive anything from Bluetooth
Serial.write(SerialBT.read()); // Send what we receive to the built-in serial port
}

if (Serial.available()) { // Check if anything is coming from the built-in serial port
SerialBT.write(Serial.read()); // Send what we receive to Bluetooth
}
}
</code></pre>
<p dir="auto">-Terry</p>
]]></description><link>https://www.community.lilygo.cc/post/1388</link><guid isPermaLink="true">https://www.community.lilygo.cc/post/1388</guid><dc:creator><![CDATA[teastain2]]></dc:creator><pubDate>Wed, 08 Nov 2023 19:31:21 GMT</pubDate></item></channel></rss>