Skip to content

Commit 14ed33c

Browse files
authored
Merge pull request #5936 from tannewt/esp_ble_advertise
Support BLE advertising on ESP
2 parents fff68c9 + 019aeca commit 14ed33c

File tree

9 files changed

+349
-28
lines changed

9 files changed

+349
-28
lines changed

locale/circuitpython.pot

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ msgstr ""
446446
msgid "All timers in use"
447447
msgstr ""
448448

449+
#: ports/espressif/common-hal/_bleio/Adapter.c
449450
#: ports/nrf/common-hal/_bleio/Adapter.c
450451
msgid "Already advertising."
451452
msgstr ""
@@ -908,10 +909,12 @@ msgstr ""
908909
msgid "Data chunk must follow fmt chunk"
909910
msgstr ""
910911

912+
#: ports/espressif/common-hal/_bleio/Adapter.c
911913
#: ports/nrf/common-hal/_bleio/Adapter.c
912914
msgid "Data not supported with directed advertising"
913915
msgstr ""
914916

917+
#: ports/espressif/common-hal/_bleio/Adapter.c
915918
#: ports/nrf/common-hal/_bleio/Adapter.c
916919
msgid "Data too large for advertisement packet"
917920
msgstr ""
@@ -992,6 +995,7 @@ msgstr ""
992995
msgid "Expected tuple of length %d, got %d"
993996
msgstr ""
994997

998+
#: ports/espressif/common-hal/_bleio/Adapter.c
995999
#: ports/nrf/common-hal/_bleio/Adapter.c
9961000
msgid "Extended advertisements with scan response not supported."
9971001
msgstr ""
@@ -1045,6 +1049,7 @@ msgstr ""
10451049
msgid "Failed to buffer the sample"
10461050
msgstr ""
10471051

1052+
#: ports/espressif/common-hal/_bleio/Adapter.c
10481053
#: ports/nrf/common-hal/_bleio/Adapter.c
10491054
msgid "Failed to connect: internal error"
10501055
msgstr ""
@@ -1276,6 +1281,7 @@ msgstr ""
12761281
msgid "Invalid AuthMode"
12771282
msgstr ""
12781283

1284+
#: ports/espressif/common-hal/_bleio/__init__.c
12791285
#: ports/nrf/common-hal/_bleio/__init__.c
12801286
msgid "Invalid BLE parameter"
12811287
msgstr ""
@@ -1584,6 +1590,10 @@ msgstr ""
15841590
msgid "Name too long"
15851591
msgstr ""
15861592

1593+
#: ports/espressif/common-hal/_bleio/__init__.c
1594+
msgid "Nimble out of memory"
1595+
msgstr ""
1596+
15871597
#: ports/nrf/common-hal/_bleio/Characteristic.c
15881598
msgid "No CCCD for this Characteristic"
15891599
msgstr ""
@@ -1731,6 +1741,7 @@ msgstr ""
17311741
msgid "Not a valid IP string"
17321742
msgstr ""
17331743

1744+
#: ports/espressif/common-hal/_bleio/__init__.c
17341745
#: ports/nrf/common-hal/_bleio/__init__.c
17351746
#: shared-bindings/_bleio/CharacteristicBuffer.c
17361747
msgid "Not connected"
@@ -2110,6 +2121,7 @@ msgstr ""
21102121
msgid "Scale dimensions must divide by 3"
21112122
msgstr ""
21122123

2124+
#: ports/espressif/common-hal/_bleio/Adapter.c
21132125
#: ports/nrf/common-hal/_bleio/Adapter.c
21142126
msgid "Scan already in progess. Stop with stop_scan."
21152127
msgstr ""
@@ -2268,6 +2280,7 @@ msgstr ""
22682280
msgid "Time is in the past."
22692281
msgstr ""
22702282

2283+
#: ports/espressif/common-hal/_bleio/Adapter.c
22712284
#: ports/nrf/common-hal/_bleio/Adapter.c
22722285
#, c-format
22732286
msgid "Timeout is too long: Maximum timeout length is %d seconds"
@@ -2290,6 +2303,7 @@ msgstr ""
22902303
msgid "Too many displays"
22912304
msgstr ""
22922305

2306+
#: ports/espressif/common-hal/_bleio/PacketBuffer.c
22932307
#: ports/nrf/common-hal/_bleio/PacketBuffer.c
22942308
msgid "Total data to write is larger than %q"
22952309
msgstr ""
@@ -2421,11 +2435,21 @@ msgstr ""
24212435
msgid "Unknown security error: 0x%04x"
24222436
msgstr ""
24232437

2438+
#: ports/espressif/common-hal/_bleio/__init__.c
2439+
#, c-format
2440+
msgid "Unknown system firmware error at %s:%d: %d"
2441+
msgstr ""
2442+
24242443
#: ports/nrf/common-hal/_bleio/__init__.c
24252444
#, c-format
24262445
msgid "Unknown system firmware error: %04x"
24272446
msgstr ""
24282447

2448+
#: ports/espressif/common-hal/_bleio/__init__.c
2449+
#, c-format
2450+
msgid "Unknown system firmware error: %d"
2451+
msgstr ""
2452+
24292453
#: shared-bindings/adafruit_pixelbuf/PixelBuf.c
24302454
#, c-format
24312455
msgid "Unmatched number of items on RHS (expected %d, got %d)."
@@ -2463,11 +2487,13 @@ msgstr ""
24632487
msgid "Update Failed"
24642488
msgstr ""
24652489

2490+
#: ports/espressif/common-hal/_bleio/Descriptor.c
24662491
#: ports/nrf/common-hal/_bleio/Characteristic.c
24672492
#: ports/nrf/common-hal/_bleio/Descriptor.c
24682493
msgid "Value length != required fixed length"
24692494
msgstr ""
24702495

2496+
#: ports/espressif/common-hal/_bleio/Descriptor.c
24712497
#: ports/nrf/common-hal/_bleio/Characteristic.c
24722498
#: ports/nrf/common-hal/_bleio/Descriptor.c
24732499
msgid "Value length > max_length"
@@ -2525,6 +2551,7 @@ msgstr ""
25252551
msgid "Woken up by alarm.\n"
25262552
msgstr ""
25272553

2554+
#: ports/espressif/common-hal/_bleio/PacketBuffer.c
25282555
#: ports/nrf/common-hal/_bleio/PacketBuffer.c
25292556
msgid "Writes not supported on Characteristic"
25302557
msgstr ""
@@ -3592,6 +3619,7 @@ msgstr ""
35923619
msgid "matrix is not positive definite"
35933620
msgstr ""
35943621

3622+
#: ports/espressif/common-hal/_bleio/Descriptor.c
35953623
#: ports/nrf/common-hal/_bleio/Characteristic.c
35963624
#: ports/nrf/common-hal/_bleio/Descriptor.c
35973625
#, c-format

ports/espressif/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ INC += \
8686
-isystem esp-idf \
8787
-isystem esp-idf/components/app_update/include \
8888
-isystem esp-idf/components/bootloader_support/include \
89+
-isystem esp-idf/components/bt/include/$(IDF_TARGET)/include \
8990
-isystem esp-idf/components/bt/host/nimble/esp-hci/include \
91+
-isystem esp-idf/components/bt/host/nimble/nimble/nimble/controller/include \
9092
-isystem esp-idf/components/bt/host/nimble/nimble/nimble/host/include \
9193
-isystem esp-idf/components/bt/host/nimble/nimble/nimble/host/services/gap/include \
9294
-isystem esp-idf/components/bt/host/nimble/nimble/nimble/include \

0 commit comments

Comments
 (0)