22 lines
401 B
Python
22 lines
401 B
Python
import threading
|
|
from plc_to_mongo import PLC_to_Mongo
|
|
from poc_to_modbus import ModbusTCPMongoServer
|
|
|
|
PLC_IP_ADDRESS = 'denise1601.henryres.poconsole.net'
|
|
|
|
scraper_thread = PLC_to_Mongo(PLC_IP_ADDRESS)
|
|
server_thread = ModbusTCPMongoServer()
|
|
|
|
|
|
def main():
|
|
scraper_thread.start()
|
|
server_thread.start()
|
|
|
|
|
|
def justscrape():
|
|
scraper_thread.start()
|
|
|
|
|
|
def justserve():
|
|
server_thread.start()
|