Skip to content

Commit 5b555f4

Browse files
committed
💚 (GitHub): compile PlatformIO with C++17
1 parent 0bea04f commit 5b555f4

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.github/workflows/platformio-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
env:
6565
PLATFORMIO_CI_SRC: "./examples/${{ matrix.example }}/*.ino"
6666
PLATFORMIO_BUILD_FLAGS: |
67+
-std=gnu++17
6768
-D BLESERIAL_USE_NIMBLE=${{ matrix.nimble }}
6869
-Wall
6970
-Wextra

examples/SerialToSerialBLE/SerialToSerialBLE.ino

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77

88
String device_name = "ESP32-BLE-Slave";
99

10-
// Mind the empty template argument (<>), it is required for
11-
// the code to compile with the current Arduino C++ compiler version
12-
BLESerial<> SerialBLE;
10+
BLESerial SerialBLE;
11+
// If you are using older version of Arduino IDE, you may need to use
12+
// empty template argument (<>), due to the old C++ compiler version (<=std=c++17).
13+
// https://www.cppreference.com/w/cpp/language/ctad.html
14+
//
15+
// Uncomment the line below if you are using an older version of Arduino IDE/C++ compiler
16+
// BLESerial<> SerialBLE;
1317

1418
// FOR ETL: Uncomment one of the following lines
1519
// BLESerial<etl::queue<uint8_t, 255, etl::memory_model::MEMORY_MODEL_SMALL>> SerialBLE;

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/schema/library.json",
33
"name": "Serial_BLE",
4-
"version": "1.1.3",
4+
"version": "1.2.0",
55
"description": "Customizable Arduino and ESP32 BLE Serial library, compliant with Nordic UART Service and others.",
66
"keywords": [
77
"serial",
@@ -46,6 +46,6 @@
4646
"srcDir": "src"
4747
},
4848
"dependencies": {
49-
"ESP32 BLE Arduino": "^2.0.0"
49+
"BLE": "^2.0.0"
5050
}
5151
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Serial_BLE
2-
version=1.1.3
2+
version=1.2.0
33
author=Leonid Meleshin <[email protected]>
44
maintainer=Leonid Meleshin <[email protected]>
55
sentence=Customizable BLE Serial (UART) library.

0 commit comments

Comments
 (0)