def prepare_connections(): """ Preparations required for a series of experiments """ global ns, ds, ed, tpy_devices, tpy_tc, tpy_node ns = rc.ChirpstackNS(NUT_API_URL) ns.auth(NUT_API_USER, NUT_API_PASS) ds = rc.DeviceService(ns) ed = rc.RemoteEndDevice(DUT_HOST, DUT_PORT, cb_event=dut_cb_event, cb_class=dut_cb_class, cb_rx=dut_handle_rxinfo, cb_tx=dut_handle_txinfo, cb_beacon=dut_handle_beaconinfo, cb_err=lambda ed, err: \ dut_cb_error(ed, err, exp_meta, exp_meta_lock)) tpy_tc, tpy_devices = tpy_from_context() tpy_node = tpy_tc.nodes[TPY_NODE][TPY_MODULE]
# This is just a dummy script used in the GitHub Actions to assure that the # chirpotle.sh script # command runs successfully. from chirpotle.context import tpy_from_context tc, devices = tpy_from_context() # exit 0