Hi,
You told me to get iccid: ubus call gsm.modem0 get_iccid | jsonfilter -e @.iccid
Please, how can I store the iccid to a variable in a custom script?
Regards,
David
Hi,
You told me to get iccid: ubus call gsm.modem0 get_iccid | jsonfilter -e @.iccid
Please, how can I store the iccid to a variable in a custom script?
Regards,
David
Hello,
iccid = $(ubus call gsm.modem0 get_iccid | jq .iccid)
echo "iccid = " $iccid
Install jq if you don’t have it:
opkg update
opkg install jq
Regards,
This topic was automatically closed after 15 days. New replies are no longer allowed.