예제 #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
예제 #2
0
 def create(self):
     conf = testing.GetConfigForTesting()
     c = upload.APIClient(conf)
     c.SetServer('host.example.com', 123)
     return c
예제 #3
0
def liveTest():
    conf = testing.GetConfigForTesting()
    c = upload.APIClient(conf)
    c.SetServer('localhost', 5051)

    print c.PostPacket('test_satellite', 569, '\xab\x00\x5a')
예제 #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')