mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-10 10:11:29 +01:00
Add on_response Trigger
lambda example (#3987)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
8b340ea071
commit
fde5bdd659
@ -176,6 +176,8 @@ The following variables are available for use in :ref:`lambdas <config-lambda>`:
|
||||
args:
|
||||
- response->status_code
|
||||
- response->duration_ms
|
||||
- lambda: |-
|
||||
ESP_LOGD(TAG, "Response status: %d, Duration: %u ms", response->status_code, response->duration_ms);
|
||||
|
||||
|
||||
.. _http_request-examples:
|
||||
|
Loading…
Reference in New Issue
Block a user