Skip to content
Snippets Groups Projects
Commit aa4b0a59 authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

renamed port names and added defaults

parent b0b8d9a1
Branches
No related tags found
No related merge requests found
......@@ -12,6 +12,8 @@ if sys.implementation.name == "micropython":
import uasyncio as asyncio
else:
import asyncio
DEFAULT_UMNP_DATA_IN_PORT = 7777
DEFAULT_UMNP_COMMAND_IN_PORT = 7776
class UDPReceiver:
......@@ -38,11 +40,11 @@ class UDPReceiver:
class UDPSender:
def __init__(self, ip, netmask, target_port: int):
def __init__(self, ip, netmask, send_to_port: int):
self.socket = None
self.ip = ip
self.netmask = netmask
self._target_port = target_port
self._target_port = send_to_port
if ip and netmask:
self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment