diff --git a/examples/example_otap.py b/examples/example_otap.py index 112d0a8..5bcad41 100644 --- a/examples/example_otap.py +++ b/examples/example_otap.py @@ -38,6 +38,11 @@ help="Network address concerned by scratchpad") parser.add_argument('--file', help="Scratcphad to use") + parser.add_argument("--gateway", + type=str, + nargs='+', + help="Gateway list to use. If specified, the OTAP will be performed on given Gateway IDs", + default=None) args = parser.parse_args() logging.basicConfig(format='%(levelname)s %(asctime)s %(message)s', level=logging.WARNING) @@ -53,7 +58,8 @@ exit() otapHelper = WirepasOtapHelper(wni, - args.network) + args.network, + args.gateway) if args.cmd == "update_delay": delay = wmm.ProcessingDelay.DELAY_THIRTY_MINUTES