code: def set_connection_params(self, ip_address, tsap_snap7, tsap_logo):
          
          assert re.match(ipv4, ip_address), '%s is invalid ipv4' % ip_address
          result = self.library.Cli_SetConnectionParams(self.pointer, ip_address.encode(),
                                                        c_uint16(tsap_snap7),
                                                        c_uint16(tsap_logo))
          if result != 0:
              raise Snap7Exception("The parameter was invalid")
docs: Sets internally (IP, LocalTSAP, RemoteTSAP) Coordinates.
          This function must be called just before Cli_Connect().
  
          :param ip_address: IP ip_address of server
          :param tsap_snap7: TSAP SNAP7 Client (e.g. 10.00 = 0x1000)
          :param tsap_logo: TSAP Logo Server (e.g. 20.00 = 0x2000)