Skip to content

Commit

Permalink
Merge branch 'bugfix/remove_python_examples_ttfw' into 'master'
Browse files Browse the repository at this point in the history
Nimble:Removed files referring to old TTFW framework

See merge request espressif/esp-idf!23225
  • Loading branch information
rahult-github committed May 23, 2023
2 parents 1cf46bd + 7042eb7 commit 310bb89
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 667 deletions.
13 changes: 0 additions & 13 deletions .gitlab/ci/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2345,19 +2345,6 @@
- <<: *if-dev-push
changes: *patterns-target_test-adc

.rules:test:example_test-esp32-bt:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-example_test
- <<: *if-label-example_test_esp32
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-example_test-bt

.rules:test:example_test-esp32-ccs811:
rules:
- <<: *if-revert-branch
Expand Down
8 changes: 0 additions & 8 deletions .gitlab/ci/target-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1132,14 +1132,6 @@ example_test_001C:
- ESP32
- Example_GENERIC

example_test_005:
extends:
- .example_test_esp32_template
- .rules:test:example_test-esp32-bt
tags:
- ESP32
- Example_WIFI_BT

example_test_C3_GENERIC:
extends: .example_test_esp32c3_template
tags:
Expand Down
58 changes: 0 additions & 58 deletions examples/bluetooth/nimble/blecent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ This example aims at understanding BLE service discovery, connection, encryption

To test this demo, use any BLE GATT server app that advertises support for the Alert Notification service (0x1811) and includes it in the GATT database.

A Python based utility `blecent_test.py` is also provided (which will run as a BLE GATT server) and can be used to test this example.

Note :

* To install the dependency packages needed, please refer to the top level [README file](../../../README.md#running-test-python-script-ttfw).
Expand Down Expand Up @@ -134,62 +132,6 @@ GAP procedure initiated: terminate connection; conn_handle=0 hci_reason=19
disconnect; reason=534
```

## Running Python Utility

```
python blecent_test.py
```

## Python Utility Output

This is this output seen on the python side on successful connection:

```
discovering adapter...
bluetooth adapter discovered
powering on adapter...
bluetooth adapter powered on
Advertising started
GATT Data created
GATT Application registered
Advertising data created
Advertisement registered
Read Request received
SupportedNewAlertCategoryCharacteristic
Value: [dbus.Byte(2)]
Write Request received
AlertNotificationControlPointCharacteristic
Current value: [dbus.Byte(0)]
New value: [dbus.Byte(99), dbus.Byte(100)]
Notify Started
New value on write: [dbus.Byte(1), dbus.Byte(0)]
Value on read: [dbus.Byte(1), dbus.Byte(0)]
Notify Stopped
exiting from test...
GATT Data removed
GATT Application unregistered
Advertising data removed
Advertisement unregistered
Stop Advertising status: True
disconnecting device...
device disconnected
powering off adapter...
bluetooth adapter powered off
Service discovery passed
Service Discovery Status: 0
Read passed
SupportedNewAlertCategoryCharacteristic
Read Status: 0
Write passed
AlertNotificationControlPointCharacteristic
Write Status: 0
Subscribe passed
ClientCharacteristicConfigurationDescriptor
Subscribe Status: 0
```

## Troubleshooting

Expand Down
140 changes: 0 additions & 140 deletions examples/bluetooth/nimble/blecent/blecent_test.py

This file was deleted.

50 changes: 0 additions & 50 deletions examples/bluetooth/nimble/blehr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ This example aims at understanding notification subscriptions and sending notifi

To test this demo, any BLE scanner app can be used.

A Python based utility `blehr_test.py` is also provided (which will run as a BLE GATT Client) and can be used to test this example.

Note :

* To install the dependency packages needed, please refer to the top level [README file](../../../README.md#running-test-python-script-ttfw).
Expand Down Expand Up @@ -69,54 +67,6 @@ GATT procedure initiated: notify; att_handle=3
```

## Running Python Utility

```
python blehr_test.py
```

## Python Utility Output

This is this output seen on the python side on successful connection:

```
discovering adapter...
bluetooth adapter discovered
powering on adapter...
bluetooth adapter powered on
Started Discovery
Connecting to device...
Connected to device
Services
[dbus.String(u'00001801-0000-1000-8000-00805f9b34fb', variant_level=1), dbus.String(u'0000180d-0000-1000-8000-00805f9b34fb', variant_level=1), dbus.String(u'0000180a-0000-1000-8000-00805f9b34fb', variant_level=1)]
Subscribe to notifications: On
dbus.Array([dbus.Byte(6), dbus.Byte(90)], signature=dbus.Signature('y'), variant_level=1)
dbus.Array([dbus.Byte(6), dbus.Byte(91)], signature=dbus.Signature('y'), variant_level=1)
dbus.Array([dbus.Byte(6), dbus.Byte(92)], signature=dbus.Signature('y'), variant_level=1)
dbus.Array([dbus.Byte(6), dbus.Byte(93)], signature=dbus.Signature('y'), variant_level=1)
dbus.Array([dbus.Byte(6), dbus.Byte(94)], signature=dbus.Signature('y'), variant_level=1)
dbus.Array([dbus.Byte(6), dbus.Byte(95)], signature=dbus.Signature('y'), variant_level=1)
dbus.Array([dbus.Byte(6), dbus.Byte(96)], signature=dbus.Signature('y'), variant_level=1)
dbus.Array([dbus.Byte(6), dbus.Byte(97)], signature=dbus.Signature('y'), variant_level=1)
dbus.Array([dbus.Byte(6), dbus.Byte(98)], signature=dbus.Signature('y'), variant_level=1)
dbus.Array([dbus.Byte(6), dbus.Byte(99)], signature=dbus.Signature('y'), variant_level=1)
Subscribe to notifications: Off
Success: blehr example test passed
exiting from test...
disconnecting device...
device disconnected
powering off adapter...
bluetooth adapter powered off
```

## Troubleshooting

For any technical queries, please open an [issue](https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon.
Loading

0 comments on commit 310bb89

Please sign in to comment.