fixes main scripts
This commit is contained in:
@@ -1,10 +1,5 @@
|
|||||||
from poc_to_modbus import ModbusTCPMongoServer
|
from poc_to_modbus import ModbusTCPMongoServer
|
||||||
|
|
||||||
|
|
||||||
def main():
|
modbus_tcp_server = ModbusTCPMongoServer()
|
||||||
modbus_tcp_server = ModbusTCPMongoServer()
|
modbus_tcp_server.run()
|
||||||
modbus_tcp_server.run()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
|
|||||||
@@ -6,11 +6,5 @@ PLC_IP_ADDRESS = getenv("PLC_IP_ADDRESS")
|
|||||||
if not PLC_IP_ADDRESS:
|
if not PLC_IP_ADDRESS:
|
||||||
exit("No PLC_IP_ADDRESS set in the environment variables")
|
exit("No PLC_IP_ADDRESS set in the environment variables")
|
||||||
|
|
||||||
|
scraper_thread = PLC_to_Mongo(PLC_IP_ADDRESS)
|
||||||
def main():
|
scraper_thread.run()
|
||||||
scraper_thread = PLC_to_Mongo(PLC_IP_ADDRESS)
|
|
||||||
scraper_thread.run()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user