mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 03:24:54 +01:00
add test scripts
This commit is contained in:
parent
4750c97606
commit
328b7255cb
3 changed files with 17 additions and 0 deletions
15
tests/components/espnow/common.yaml
Normal file
15
tests/components/espnow/common.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
espnow:
|
||||
auto_add_peer: true
|
||||
peers:
|
||||
- FF:FF:FF:FF:FF:FF
|
||||
on_package_received:
|
||||
- logger.log:
|
||||
format: "Received: %s RSSI: %d"
|
||||
args: [it->data().data(), it->rssi()]
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: GPIO39
|
||||
name: Button
|
||||
on_click:
|
||||
- espnow.send: "hallo everyone"
|
1
tests/components/espnow/test.esp32-ard.yaml
Normal file
1
tests/components/espnow/test.esp32-ard.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
<<: !include common.yaml
|
1
tests/components/espnow/test.esp32-idf.yaml
Normal file
1
tests/components/espnow/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
<<: !include common.yaml
|
Loading…
Reference in a new issue