49 Commits

Author SHA1 Message Date
David Lechner
0ca3fe1c31 remove semicolons from python files
Random semicolons in Python are distracting when reading the code.
2025-01-22 08:40:56 +01:00
David Lechner
73677349c9 tool: consistently use raw strings for regular expressions
Newer versions of Python raise a SyntaxWarning when a regular expression
contains a backslash that is not part of an escape sequence. To prevent
this warning and future exceptions, use raw strings for all regular
expressions. Even strings without escape sequences are converted for
consistency. Some IDEs will apply special syntax highlighting to raw
strings, which can make it easier to decipher regular expressions.
2025-01-22 08:40:56 +01:00
Ricardo Quesada
d48e511ecb
compile_gatt.py: add clang-format off to header (#553)
Add clang-format off to header.
Useful when the auto-generated headers are checked-in a repo with
clang-format enabled.
2024-01-10 11:46:20 +01:00
Matthias Ringwald
bae152386e tool/compile_gatt: fix regular expressions 2023-12-12 10:17:45 +01:00
Matthias Ringwald
bd8291e95f tool/compile_gatt: add GAP characteristic UUIDs 2023-08-20 14:46:29 +02:00
Wayne Keenan
5ea34488cd tool/compile_gatt: print IO exception message and usage 2023-07-25 19:38:12 +02:00
Matthias Ringwald
c7a36ba4a1 compile_gatt: support gatt client/server supported features 2023-05-22 11:24:39 +02:00
Sanaa Hamel
079990e806 compile_gatt: fix incorrect GATT descriptor for VALID_RANGE and ENVIRONMENTAL_SENSING_MEASUREMENT
fix parseGenericDynamicReadOnlyDescriptor ignoring its uuid param
2023-04-17 10:53:09 +02:00
Matthias Ringwald
d567aeb323 mesh: move gatt services into mesh/gatt-service folder 2022-10-03 12:31:34 +02:00
Milanka Ringwald
6a72ce79e8 tool/compile_gatt: remove reference to included services that are already processed 2022-01-11 19:57:21 +01:00
Milanka Ringwald
e5ce8e0e91 tool/compile_gatt: improve property view 2022-01-11 19:57:21 +01:00
Milanka Ringwald
09e90ba6f6 tool/compile_gatt: add all included services 2022-01-11 19:57:21 +01:00
Matthias Ringwald
3c5d40722c tool/compile_gatt: fix database hash calculation for Characteristic handle 2021-05-03 14:30:35 +02:00
Matthias Ringwald
8c70002d7d tool/compile_gatt: fix error message for unknown presentation format identifier in aggregate format 2021-05-03 12:29:32 +02:00
Matthias Ringwald
766e9e2722 tool/compile_gatt: allow CHARACTERISTIC_USER_DESCRIPTION to be dynamic, fix UUID for other dynamic descriptors 2021-05-03 12:29:32 +02:00
Milanka Ringwald
05146de047 tool/compile_gatt: parse EXTERNAL_REPORT_REFERENCE 2021-03-31 10:44:22 +02:00
Matthias Ringwald
6f08f1597c tool/compile_gatt.py: support dynamic descriptors for environmental sensing 2021-02-11 10:46:58 +01:00
Matthias Ringwald
17215335f5 tool/compile_gatt.py: extract generic parser for dynamic descriptors for read/write and read-only 2021-02-11 10:45:21 +01:00
Matthias Ringwald
29ba805bf8 tool/compile_gatt: support multiple instances of the same service 2021-01-26 21:00:34 +01:00
Milanka Ringwald
6ccd824859 update python scripts to python3 2020-11-03 15:19:00 +01:00
Matthias Ringwald
fa529fa70e tool/compile_gatt: mark profile_data as constexpr for C++11 2020-10-23 16:31:52 +02:00
Matthias Ringwald
ced5a857a4 tool/compile_gatt: add fallback for PyCryptodome installed as replacement for PyCrypto 2020-09-11 15:43:31 +02:00
Matheus Garbelini
4783d25609 Fix some python3 related errors during compilation
* qt-h4 cmake now uses PROJECT_SOURCE_DIR to correctly point to the project root folder (fixes compilation error when the user build from sub-folder)
* Change from using python to `python3` (previously compilation would fail if user had python as the default python2.7)
2020-06-24 02:33:27 +08:00
Matthias Ringwald
7490175edc tool/compile_gatt.py: use random number for GATT Database Hash, if PyCryptodome is not installed 2020-03-02 15:34:49 +01:00
Matthias Ringwald
d78181d6b7 tool/compile_gatt.py: use text-mode for temporary file - fix for windows 2020-02-23 22:32:19 +01:00
Matthias Ringwald
379d3ace42 tool/compile_gatt: revert to working version 2020-01-16 15:15:37 +01:00
Matthias Ringwald
043f8832f5 tool/compile_gatt:calculated GATT Database Hash 2020-01-12 21:14:32 +01:00
Matthias Ringwald
285653b26b tool/compile_gatt: support multiple process passes 2020-01-10 23:21:07 +01:00
Matthias Ringwald
b4e354c12f tool/compile_gatt: fix tool permissions 2019-09-06 15:47:37 +02:00
Matthias Ringwald
78b65b0a93 tool/compile_gatt: normalize paths, use os specific path separators 2019-09-06 14:46:25 +02:00
Matthias Ringwald
7050bf34e5 compile_gatt: document how .h was generated 2019-03-28 09:44:12 +01:00
Matthias Ringwald
e72176f809 compile_gatt: add support for WRITE_AUTHENTICATED_SC and READ_AUTHENTICATED_SC flags 2019-03-06 15:14:07 +01:00
Matthias Ringwald
9be4aecf32 compile_gatt: Allow enable Notifications/Indication with Write Command. Fixes issue with some Android devices 2018-08-05 22:49:29 +02:00
Milanka Ringwald
dbb3997aee compile_gatt: add additional paths for .gatt files using -I 2018-07-05 12:15:01 +02:00
Matthias Ringwald
b7647eb604 compile_gatt: fix parsing of CHARACTERISTIC_USER_DESCRIPTION, issue #23 2018-05-28 21:58:43 +02:00
Matthias Ringwald
fd1be25d18 att_db: add att db version as first byte, report error if version differs (also works for older db without version byte) 2018-03-29 17:22:12 +02:00
Matthias Ringwald
d7ec1d24bc compile_gatt: pretty print security settings in generated file 2018-03-29 17:22:12 +02:00
Matthias Ringwald
e22a261227 compile_gatt: define independent security requirements for read and write operations 2018-03-29 17:22:12 +02:00
Matthias Ringwald
34af254639 att_db: detect persistent ccc by attribute uuid instead of explicit flag 2018-03-02 12:12:49 +01:00
Matthias Ringwald
8f8dd6263a att_db: introduce PERSISTENT_WRITE_CCC, add to CCC ATT handle 2017-10-17 14:50:51 +02:00
Matthias Ringwald
8ea3236c5e compile_gatt: fix flags for ccc 2017-09-22 14:49:27 +02:00
Matthias Ringwald
eb6072adf6 compile_gatt+att_db+att_db_util: make Client Characteristic Configuration readable without authentication but require permissions for write 2017-09-22 14:20:26 +02:00
Matthias Ringwald
231a3c5dc3 gatt_compiler: fix typo on CLIENT_CHARACTERISTIC_CONFIGURATION 2017-02-10 11:05:42 +01:00
Matthias Ringwald
85a677ece0 move GATT services into src/ble/gatt-service 2016-11-02 15:31:48 +01:00
Matthias Ringwald
60b51a4c4e GATT Compiler: support #import <..> and ".." directives 2016-10-31 17:35:45 +01:00
Matthias Ringwald
c9454abcff GATT Compiler: align comments 2016-10-31 16:06:06 +01:00
Matthias Ringwald
729074c4fd add defines for start and end handle of each service 2016-10-30 23:12:31 +01:00
Matthias Ringwald
b165f97b80 GATT Converter: resolve UUIDs from src/bluetooth_gatt.h 2016-10-28 15:28:53 +02:00
Matthias Ringwald
b3fcedb9c9 compile-gatt.py -> compile_gatt.py 2016-04-10 21:58:19 +02:00