RSI-PI/examples/example_01_start_stop.py

16 lines
282 B
Python

from RSIPI import RSIAPI
if __name__ == '__main__':
from multiprocessing import freeze_support
freeze_support()
api = RSIAPI()
api.start()
print("RSI connection started. Press Enter to stop.")
input()
api.stop()
print("RSI connection stopped.")