rws_client_thread_example.py
def run(self):
        """Subscribes to the panel control state resource (motor off/on, guardstop, etc)
        and retrieves regularly the current state of the resource. 
        """
        
        payload = {'resources':['1'],
            '1':'/rw/panel/ctrlstate',
            '1-p':'1'}
        
        """
        payload = {'resources':['1', '2'],
            '1':'/rw/panel/ctrlstate',
            '1-p':'1',
            '2':'/rw/panel/opmode',
            '2-p':'1'}
        """
        
        self.start_listening(payload)
        
        for i in range(30):
            print(i)
            print(self.get_data_listening())
            print('\n\n')
            time.sleep(1)
            
        self.stop_listening()
        
        self.logout()
        self.close_http_session()
Subscribes to the panel control state resource (motor off/on, guardstop, etc)
        and retrieves regularly the current state of the resource. 
        
Subscribes to the panel control state resource (motor off/on, guardstop, etc)
and retrieves regularly the current state of the resource.
Subscribes to the panel control state resource ( motor off / on guardstop etc ) and retrieves regularly the current state of the resource .
def run(self):
        payload = {'resources':['1'],
            '1':'/rw/panel/ctrlstate',
            '1-p':'1'}
        self.start_listening(payload)
        for i in range(30):
            print(i)
            print(self.get_data_listening())
            print('\n\n')
            time.sleep(1)
        self.stop_listening()
        self.logout()
        self.close_http_session()
def run ( self ) : payload = { 'resources' : [ '1' ] , '1' : '/rw/panel/ctrlstate' , '1-p' : '1' } """
        payload = {'resources':['1', '2'],
            '1':'/rw/panel/ctrlstate',
            '1-p':'1',
            '2':'/rw/panel/opmode',
            '2-p':'1'}
        """ self . start_listening ( payload ) for i in range ( 30 ) : print ( i ) print ( self . get_data_listening ( ) ) print ( '\n\n' ) time . sleep ( 1 ) self . stop_listening ( ) self . logout ( ) self . close_http_session ( )
Subscribes to the panel control state resource (motor off/on, guardstop, etc)
and retrieves regularly the current state of the resource.
Subscribes to the panel control state resource ( motor off / on guardstop etc ) and retrieves regularly the current state of the resource .
"""Subscribes to the panel control state resource (motor off/on, guardstop, etc)
        and retrieves regularly the current state of the resource. 
        """ """
        payload = {'resources':['1', '2'],
            '1':'/rw/panel/ctrlstate',
            '1-p':'1',
            '2':'/rw/panel/opmode',
            '2-p':'1'}
        """
self