Test the beacon's recv method.
(b)
| 70 | time.sleep(1) |
| 71 | |
| 72 | def test_recv(b): |
| 73 | "Test the beacon's recv method." |
| 74 | while True: |
| 75 | data, address = b.recv(1 << 12) |
| 76 | print('From: {}\n{}\n'.format(address, data.decode())) |
| 77 | |
| 78 | ################################################################################ |
| 79 |