Main Content

reset

Restore properties of RESTFunctionConnector to default values

Since R2024a

    Description

    reset(conn) restores the properties of the specified RESTFunctionConnector object to these default values:

    • Port set to 9920

    • LogLocation set to "<mwPath>/restfcnconnector/logs"

    • HostName set to an empty string

    • ClientAccessMode set to local

    • No change to RESTPersonalAccessToken. Use the changeToken function to change the token.

    • No change to TokenExpirationDate

    • No change to Certificate. Use the changeCertificate function to change the certificate.

    • No change to CertificateExpirationDate

    • No change to BaseUrl

    • No change to Status

    example

    Examples

    collapse all

    Modify a connector to communicate between MATLAB® and a client application, specifying the port number, log location, and client access mode.

    conn = restFunctionConnector;
    conn.Port = 9924;
    conn.LogLocation = "C:\myDir\logs"; 
    conn.ClientAccessMode = remote;
    conn
    conn = 
      RESTFunctionConnector with properties: 
     
                                 Port: 9924 
                          LogLocation: "C:\myDir\logs" 
                             HostName: "" 
                     ClientAccessMode: remote 
                         ServiceNames: 1x0 string 
              RESTPersonalAccessToken: "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyA=" 
                  TokenExpirationDate: 19-Oct-2024 
                          Certificate: "<mwPath>\restfcnconnector\publickey.pem" 
            CertificateExpirationDate: 19-Sep-2024 
                              BaseUrl: "" 
                               Status: notrunning 

    Reset the connector to the default property values.

    reset(conn)
    
    conn = 
      RESTFunctionConnector with properties: 
     
                                 Port: 9920 
                          LogLocation: "<mwPath>\restfcnconnector\logs" 
                             HostName: "" 
                     ClientAccessMode: local 
                         ServiceNames: 1x0 string 
              RESTPersonalAccessToken: "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyA=" 
                  TokenExpirationDate: 19-Oct-2024 
                          Certificate: "<mwPath>\restfcnconnector\publickey.pem" 
            CertificateExpirationDate: 19-Sep-2025 
                              BaseUrl: "" 
                               Status: notrunning 

    Input Arguments

    collapse all

    The REST function connector, specified as a RESTFunctionConnector object.

    Version History

    Introduced in R2024a

    See Also

    Functions

    Objects