I can't take several measures
I would like to repeat the tests several times to relieve the bandwidth of an entire room. but when I repeat the test it gives me an error that I suppose is to rewrite the variable result = client.run ()
Traceback (most recent call last):
File "/home/pi/Desktop/test1.py", line 19, in
any help??
I hit this toady 'OSError: [Errno 9] Bad file descriptor' trying to run two tests in a singe function. My work around was.
def iperfSingleTest():
<test setup>
result = client.run ()
print(result)
def iperfManyTests():
for i in range(1,3):
iperfSingleTest()
Hope this helps
I got a workaround here:
print("starting test")
for i in range(ITERATIONS):
test = new_client_configure()
r = test.run()
print("{}".format(r.received_Mbps))
del test
time.sleep(2)
Delete the testing object to initiate the __del__ function to close the sockets.