123456789101112131415161718192021222324252627 |
- # This is a sample Python script.
- # Press Shift+F10 to execute it or replace it with your code.
- # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
- import async_communication as rabitmq
- def print_hi(name):
- # Use a breakpoint in the code line below to debug your script.
- print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint.
- def func(msg):
- print(msg)
- # Press the green button in the gutter to run the script.
- if __name__ == '__main__':
- rabit=rabitmq.RabbitAsyncCommunicator("192.168.8.201",5672,"zx","123456")
- calbbacks=[["AGV_park_command_request_queue",func]]
- rabit.Init(calbbacks,None)
- rabit.start()
- rabit.join()
- print_hi('PyCharm')
- # See PyCharm help at https://www.jetbrains.com/help/pycharm/
|