Exemplo n.º 1
0
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
Exemplo n.º 2
0
 def test_info(self):
     i_a = InterfaceNetconnect(ZMQ_IFACE)
     print(i_a.connection_info('wifi_client'))
Exemplo n.º 3
0
 def test_info(self):
     i_a = InterfaceNetconnect(ZMQ_IFACE)
     print(i_a.connection_info('lte'))