Created
July 21, 2024 02:04
-
-
Save elico/5e437e8e21fad3873067b6ae1fcb2074 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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