esphome/tests/components/esp32_ble_server/common.yaml

37 lines
1.2 KiB
YAML
Raw Normal View History

esp32_ble_server:
id: ble
manufacturer_data: [0x72, 0x4, 0x00, 0x23]
2024-06-27 22:07:36 +02:00
manufacturer: ESPHome
model: Test
services:
- uuid: 2a24b789-7aab-4535-af3e-ee76a35cc42d
num_handles: 14
advertise: false
characteristics:
- id: test_notify_characteristic
uuid: cad48e28-7fbe-41cf-bae9-d77a6c233423
read: true
notify: true
2024-06-27 22:07:36 +02:00
value: [0, 1, 2]
descriptors:
- uuid: cad48e28-7fbe-41cf-bae9-d77a6c111111
value: 123.1
2024-06-27 22:07:36 +02:00
- uuid: 2a24b789-7a1b-4535-af3e-ee76a35cc42d
advertise: false
characteristics:
2024-06-28 00:07:17 +02:00
- id: test_change_characteristic
uuid: 2a24b789-7a1b-4535-af3e-ee76a35cc11d
read: true
2024-06-28 00:07:17 +02:00
value: "Initial"
- uuid: 2a24b789-7a1b-4535-af3e-ee76a35cc12d
write: true
2024-06-27 22:07:36 +02:00
on_write:
then:
- lambda: |-
ESP_LOGD("BLE", "Received: %s", std::string(x.begin(), x.end()).c_str());
- ble_server.characteristic.set_value:
2024-06-28 00:07:17 +02:00
id: test_change_characteristic
2024-08-14 12:54:56 +02:00
value: !lambda 'return ByteBuffer::wrap({0x00, 0x01, 0x02});'
- ble_server.characteristic.notify:
id: test_notify_characteristic