Skip to content

Instantly share code, notes, and snippets.

@elico
Created July 21, 2024 02:04
Show Gist options
  • Save elico/5e437e8e21fad3873067b6ae1fcb2074 to your computer and use it in GitHub Desktop.
Save elico/5e437e8e21fad3873067b6ae1fcb2074 to your computer and use it in GitHub Desktop.
{
if ( ([ /interface/lte/monitor lte1 once as-value ]->"functionality") = "full" ) do={
if ( ([ /interface/lte/monitor lte1 once as-value ]->"access-technology") = "LTE" ) do={
:log info "LTE Connection";
if ( ([ /interface/lte/monitor lte1 once as-value ]->"rsrp") < -95 ) do={
:log info "Low LTE reception";
} else={
:log info "HIGH LTE reception";
}
} else={
:log info "Non LTE Connection";
if ( ([ /interface/lte/monitor lte1 once as-value ]->"rssi") < -80 ) do={
:log info "Low 3G reception";
} else={
:log info "HIGH 3G reception";
}
}
} else={
:log info "Modem is not in full functionality";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment