@@ -37,7 +37,7 @@ def readAscii(connexion_client : socket):
|
||||
if len(message) != 58 :
|
||||
## At index 22, we have the ASCII outlet number
|
||||
outlet_index = ord(message[22]) - ord('1')
|
||||
if (outlet_index < 1 or outlet_index > 8): ## if garbage, we return earlier
|
||||
if (outlet_index < 0 or outlet_index > 7): ## if garbage, we return earlier
|
||||
return
|
||||
|
||||
match message[25]:
|
||||
|
||||
@@ -13,8 +13,6 @@ export EPOWERSWITCH_SOCKET_NUMBER=8
|
||||
export HOST_NAME="localhost"
|
||||
export HOST_PORT="55555"
|
||||
|
||||
whereis procServ
|
||||
|
||||
/usr/local/bin/procServ -L - -f -i ^D^C 20001 "${PWD}/st.cmd"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user