Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_5():
import qi
import time
print("ici")
client = qi.Client("flds")
client.connect(sys.argv[1])
server = qi.Server("blam")
server.connect(sys.argv[1])
#time.sleep(1)
#server.advertise_service("moule:::", moule)
server.advertise_service("poutre::i:is", poutre)
#time.sleep(1)
print("before client.call")
#ret = client.call("moule:::")
ret = client.call("poutre::i:is", 41, "caca")
print("called result:", ret)
time.sleep(1)
def test_4():
import qi
client = qi.Client("toto")
client.connect(sys.argv[1])
ret = client.call("master.listServices::{ss}:")
for k,v in ret.iteritems():
print(k, "=", v)