The script is like this:
Code: Select all
:local output [/interface lte at-chat lte1 wait=yes input="AT!GSTATUS?"]
:put $output
:put [:typeof $output]
:local output [/interface lte at-chat lte1 wait=yes input="AT!GSTATUS?"]
:put $output
:put [:typeof $output]
I realized my mistake, I should have done thisOn terminal is not printed the variable, but the result of the operation, is why the variable is "nil"....
:local ModemResponse
:set $ModemResponse ( [ /interface lte at-chat lte1 wait=yes input="AT!GSTATUS?" as-value ]->"output" );
:put [ :typeof $ModemResponse ]