Esempio n. 1
0
def bcast(sskt):
    while (1):  #replace with flag for getting new sample later on
        spkt = Packet(1, 0, 1)  #test packet
        sskt.send((spkt.build_str()).encode())  #replace with packet encoding
        time.sleep(2)