buplib 1.0.0

A small beeper / buzzer socket wrapper library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
import socket

UDP_IP = "127.0.0.1"
UDP_PORT = 34254
MESSAGE = "hi"

print("UDP target IP: %s" % UDP_IP)
print("UDP target port: %s" % UDP_PORT)
print("message: %s" % MESSAGE)

sock = socket.socket(socket.AF_INET, # Internet
                     socket.SOCK_DGRAM) # UDP
sock.sendto(MESSAGE.encode(), (UDP_IP, UDP_PORT))