code: def set_connection_type(self, connection_type):
          
          result = self.library.Cli_SetConnectionType(self.pointer,
                                                      c_uint16(connection_type))
          if result != 0:
              raise Snap7Exception("The parameter was invalid")
docs: Sets the connection resource type, i.e the way in which the Clients
          connects to a PLC.
  
          :param connection_type: 1 for PG, 2 for OP, 3 to 10 for S7 Basic