Kapitel 15 GPIO

This commit is contained in:
2023-05-05 06:30:12 +02:00
parent 3434ab2d9f
commit 03beec6a85
10 changed files with 1 additions and 1 deletions

19
teil15/network/const.py Normal file
View File

@@ -0,0 +1,19 @@
#network/const.py
import socket
# TCP Port
__PORT__ = 6554
#Server-IP
# für den Server (immer localhost)
__SERVERLOCAL__ = socket.gethostbyname(socket.gethostname())
#für Server auf einem Remote-Pi
#__SERVERREMOTE__ = socket.gethostbyname('gabbo')
# Server-Adresse (IP,Port)
#lokal
__ADDRESSLOCAL__ = (__SERVERLOCAL__,__PORT__)
#remote
#__ADDRESSREMOTE__ = (__SERVERREMOTE__,__PORT__)