Exemplo n.º 1
0
 def config(self):
     section = serial_tnc.SerialTNC.__name__
     conf = testing.GetConfigForTesting()
     conf.add_section(section)
     conf.set(section, 'device', '/dev/null')
     conf.set(section, 'baud', '9600')
     return conf
Exemplo n.º 2
0
 def create(self):
     conf = testing.GetConfigForTesting()
     c = upload.APIClient(conf)
     c.SetServer('host.example.com', 123)
     return c
Exemplo n.º 3
0
def liveTest():
    conf = testing.GetConfigForTesting()
    c = upload.APIClient(conf)
    c.SetServer('localhost', 5051)

    print c.PostPacket('test_satellite', 569, '\xab\x00\x5a')
Exemplo n.º 4
0
def liveTest():
    conf = testing.GetConfigForTesting()
    c = api.APIClient(conf)
    c.SetServer('api.carpcomm.com', 5051)

    print c.PostPacket('test_satellite', 569, '\xab\x00\x5a')