esp_mqtt/scripts/script.http

17 wiersze
329 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 "return code: " | $this_http_code
println $this_http_body