2023-01-11 02:50:01 +01:00
|
|
|
# Tests for ESP32-C3 boards which use toolchain-riscv32-esp
|
|
|
|
---
|
|
|
|
wifi:
|
|
|
|
ssid: 'ssid'
|
|
|
|
|
|
|
|
esp32:
|
|
|
|
board: lolin_c3_mini
|
|
|
|
framework:
|
|
|
|
type: arduino
|
|
|
|
|
|
|
|
esphome:
|
|
|
|
name: 'on-response-test'
|
|
|
|
on_boot:
|
|
|
|
then:
|
|
|
|
- http_request.send:
|
|
|
|
method: PUT
|
|
|
|
url: https://esphome.io
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
body: Some data
|
|
|
|
verify_ssl: false
|
|
|
|
on_response:
|
|
|
|
then:
|
|
|
|
- logger.log:
|
|
|
|
format: "Response status: %d"
|
|
|
|
args:
|
|
|
|
- status_code
|
|
|
|
|
|
|
|
logger:
|
|
|
|
|
|
|
|
http_request:
|
|
|
|
useragent: esphome/tagreader
|
|
|
|
timeout: 10s
|
2023-07-30 23:19:06 +02:00
|
|
|
|
|
|
|
sensor:
|
|
|
|
- platform: adc
|
|
|
|
id: adc_sensor_p4
|
|
|
|
name: ADC pin 4
|
|
|
|
pin: 4
|
|
|
|
attenuation: 11db
|
|
|
|
update_interval: 1s
|