Connection.updateOptions()

DESCRIPTION

Set connection parameters through a JSON document.

The provided options are merged with the already set options. An error is returned if a parameter is not recognized. This only updates the internal representation of parameters.

Options are set in a JSON document as follows:

{
"ProductId": "pr-12345678",
"DeviceId": "de-12345678",
"ServerUrl": "https://pr-12345678.clients.nabto.net",
"ServerKey": "sk-12345678123456781234567812345678"
}

The following options are supported:

  • ProductId
  • DeviceId
  • PrivateKey
  • ServerUrl
  • ServerKey
  • ServerJwtToken
  • ServerConnectToken
  • AppName
  • AppVersion

DECLARATION

    void updateOptions(String json)

PARAMETERS

json:
a string of valid json.