Skip to content

ESP82 scripting : get a variable with HTTP #21367

Closed Answered by dooblem
dooblem asked this question in Q&A
Discussion options

You must be logged in to vote

So simple in fact.

I managed to achieve it using the syntax: script?<var> queries a script variable var

$ curl 'http://192.168.1.X/cm?cmnd=script?myvar'
{"script":{"myvar":2}}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dooblem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant