<reponame>humancomputerintegration/dextrEMS
"""OSC client
"""
from pythonosc import udp_client

# OSC server address
# ================== #
ip = "127.0.0.1"
port = 5006
# ================== #

client = udp_client.SimpleUDPClient(ip, port)
print("connected to OSC server at "+ip+":"+str(port))

while True:
  m = str(input("> send OSC: "))
  client.send_message("/motors", m)
"""OSC client
"""
from pythonosc import udp_client

# OSC server address
# ================== #
ip = "127.0.0.1"
port = 5006
# ================== #

client = udp_client.SimpleUDPClient(ip, port)
print("connected to OSC server at "+ip+":"+str(port))

while True:
  m = str(input("> send OSC: "))
  client.send_message("/motors", m)
OSC client # OSC server address # ================== # # ================== #