def status(): log = logging.getLogger(__name__) i_n = InterfaceNetconnect() ret = {} try: ret['lan'] = i_n.connection_info('lan') ret['wifi_client'] = i_n.connection_info('wifi_client') ret['lte'] = i_n.connection_info('lte') ret['ncstatus'] = i_n.status() ret['counter'] = store['counter'] except Exception as e: log.error('Cannot get status information: ' + str(e)) return {}, 405 return ret
def test_info(self): i_a = InterfaceNetconnect(ZMQ_IFACE) print(i_a.connection_info('wifi_client'))
def test_info(self): i_a = InterfaceNetconnect(ZMQ_IFACE) print(i_a.connection_info('lte'))