mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 09:44:12 +01:00
Add tests
This commit is contained in:
parent
894ef462c5
commit
ce0ecfe506
1 changed files with 26 additions and 0 deletions
|
@ -1,3 +1,29 @@
|
||||||
esp32_ble_server:
|
esp32_ble_server:
|
||||||
id: ble
|
id: ble
|
||||||
manufacturer_data: [0x72, 0x4, 0x00, 0x23]
|
manufacturer_data: [0x72, 0x4, 0x00, 0x23]
|
||||||
|
manufacturer: ESPHome
|
||||||
|
model: Test
|
||||||
|
services:
|
||||||
|
- uuid: 2a24b789-7aab-4535-af3e-ee76a35cc42d
|
||||||
|
num_handles: 14
|
||||||
|
advertise: false
|
||||||
|
characteristics:
|
||||||
|
- uuid: cad48e28-7fbe-41cf-bae9-d77a6c233423
|
||||||
|
properties:
|
||||||
|
- read
|
||||||
|
value: [0, 1, 2]
|
||||||
|
- uuid: 2a24b789-7a1b-4535-af3e-ee76a35cc42d
|
||||||
|
advertise: false
|
||||||
|
characteristics:
|
||||||
|
- id: test_write_characteristic
|
||||||
|
uuid: 2a24b789-7a1b-4535-af3e-ee76a35cc12d
|
||||||
|
properties:
|
||||||
|
- read
|
||||||
|
- write
|
||||||
|
on_write:
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGD("BLE", "Received: %s", x.c_str());
|
||||||
|
- ble_server.characteristic_set_value:
|
||||||
|
id: test_write_characteristic
|
||||||
|
value: x
|
||||||
|
|
Loading…
Reference in a new issue