Commit 0a0c921fc865e36298daccd63d8bfdc71e5666b6
1 parent
1a317dbd
Exists in
master
and in
1 other branch
Prints & comments
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
simulators/PLC.py
... | ... | @@ -17,7 +17,7 @@ class PLC(Device): |
17 | 17 | |
18 | 18 | data = conn.recv(128).decode() |
19 | 19 | |
20 | - print("Received: " + data) | |
20 | + # print("Received: " + data) | |
21 | 21 | |
22 | 22 | ''' Pour le moment, on ne reçoit que le message 'STATUS', et on renvoie un JSON qui contient la totlaité des infos ''' |
23 | 23 | |
... | ... | @@ -35,7 +35,6 @@ class PLC(Device): |
35 | 35 | elif cmd_type == "GET": |
36 | 36 | if cmd == "STATUS": |
37 | 37 | answer = self.create_status() |
38 | - print(answer) | |
39 | 38 | else: |
40 | 39 | answer = "Invalid cmd for GET: " + cmd |
41 | 40 | print(answer) |
... | ... | @@ -46,7 +45,7 @@ class PLC(Device): |
46 | 45 | |
47 | 46 | if len(answer) > 0: |
48 | 47 | conn.send(bytes(answer, "UTF-8")) |
49 | - print("send: " + answer) | |
48 | + # print("send: " + answer) | |
50 | 49 | conn.close() |
51 | 50 | |
52 | 51 | def create_status(self): | ... | ... |