Files
POC-to-ModbusTCP/__init__.py
2017-03-22 10:02:31 -05:00

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()