esp_mqtt/scripts/script.http

18 wiersze
389 B
HTTP

% Config params, overwrite any previous settings from the commandline
% Nothing here
% Now the events, checked whenever something happens
on wificonnect
do
println "get http://wtfismyip.com/text"
http_get "http://wtfismyip.com/text"
on http_response
do
println "called url: " | $this_http_host | $this_http_path
println "return code: " | $this_http_code
println $this_http_body