diff --git a/App/index.html b/App/index.html
index 6e0db4f..8940d0d 100755
--- a/App/index.html
+++ b/App/index.html
@@ -7,9 +7,10 @@
diff --git a/Server/Server-Code-2018/RoboCupServer-Current.py b/Server/Server-Code-2018/RoboCupServer-Current.py
index 4b40825..cfdf4fb 100644
--- a/Server/Server-Code-2018/RoboCupServer-Current.py
+++ b/Server/Server-Code-2018/RoboCupServer-Current.py
@@ -20,9 +20,9 @@
class MyTCPHandler(SocketServer.BaseRequestHandler):
def handle(self):
- while True:
+ # while True:
#sc.flush()
- self.data = self.request.recv(2048).decode('utf-8').strip()
+ self.data = self.request[0].decode('utf-8').strip()
new = self.data.split('\n')
for i in new:
if i != "":
@@ -38,9 +38,9 @@ def handle(self):
if ID < 5:
try:
moveWheel(ID, int(i[2:]))
- except:
+ except e:
+ print(e)
print('brokeWheel ',ID)
- pass
else:
try:
moveJoint(ID, int(i[2:-4]), i[-4:])
@@ -53,8 +53,8 @@ def handle(self):
if __name__ == "__main__":
HOST, PORT = "", 9999
-SocketServer.TCPServer.allow_reuse_address = True
-server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)
+SocketServer.UDPServer.allow_reuse_address = True
+server = SocketServer.UDPServer((HOST, PORT), MyTCPHandler)
print('Servre Started')
server.serve_forever()
diff --git a/Server/Server-Code-2018/__pycache__/GPIO.cpython-34.pyc b/Server/Server-Code-2018/__pycache__/GPIO.cpython-34.pyc
new file mode 100644
index 0000000..62a4dc2
Binary files /dev/null and b/Server/Server-Code-2018/__pycache__/GPIO.cpython-34.pyc differ
diff --git a/Server/Server-Code-2018/__pycache__/emuBot.cpython-34.pyc b/Server/Server-Code-2018/__pycache__/emuBot.cpython-34.pyc
new file mode 100644
index 0000000..1b98707
Binary files /dev/null and b/Server/Server-Code-2018/__pycache__/emuBot.cpython-34.pyc differ