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:
ProductIdDeviceIdPrivateKeyServerUrlServerKeyServerJwtTokenServerConnectTokenAppNameAppVersionIgnoreDeviceNotAttached: iftrue, the client observes the device attach state and waits for the device to attach instead of failing immediately when the device is not currently attached. Emits aWAITING_FOR_ATTACHconnection event while waiting.
DECLARATION
void updateOptions(String json)
PARAMETERS
json:- a string of valid json.