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 from pprint import pprint api = RSIAPI() api.start_rsi() sleep(4) # Dynamically update a variable pprint(api.get_variables()["send_variables"]) api.update_variable("EStr", "Tessting 123") api.update_variable("RKorr.X", 10.0) 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()