RSI-PI/src/RSIPI/main.py
2025-04-01 21:22:09 +01:00

41 lines
924 B
Python

from src.RSIPI.rsi_client import RSIClient
from time import sleep
if __name__ == "__main__":
# config_file = "RSI_EthernetConfig.xml" # Ensure this file exists in the working directory
# client = RSIClient(config_file)
# client.start()
#
# # print("done")
# #
# # # client.stop()
# sleep(5)
# print("rdfsfsdfsfsdfjsjfhakjshfd")
# client.update_send_variable("EStr", "Testing 123 Testing")
# sleep(20)
# client.stop()
from src.RSIPI.rsi_api import RSIAPI
from time import sleep
api = RSIAPI()
api.start_rsi()
sleep(4)
# Dynamically update a variable
api.update_variable("EStr", "Tessting 123")
sleep(5)
api.stop_rsi()
# from src.RSIPI.rsi_api import RSIAPI
# from time import sleep
# def main():
# api = RSIAPI()
# response = api.start_rsi()
# sleep(50)
# print(response)
#
#
#
# if __name__ == "__main__":
# main()