{
	"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/latest/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
	"self": {
		"vendor": "com.iqrftech.self-desc",
		"name": "iqmeshNetwork_SmartConnect-request",
		"format": "jsonschema",
		"version": "1-0-0"
	},
	"type": "object",
	"properties": {
		"mType": {
			"type": "string",
			"description": "IQMESH Network management - Smart Connect request.",
			"enum": [
				"iqmeshNetwork_SmartConnect"
			]
		},
		"data": {
			"type": "object",
			"properties": {
				"msgId": {
					"type": "string",
					"description": "Message identification for binding request with response."
				},
				"repeat": {
					"type": "integer",
					"description": "Number of repetitions of DPA messages.",
					"default": 1
				},
				"req": {
					"type": "object",
					"properties": {
						"deviceAddr": {
							"type": "integer",
							"description": "Address to bond the device to."
						},
						"smartConnectCode": {
							"type": "string",
							"description": "Smart connect code of the device."
						},
						"bondingTestRetries": {
							"type": "integer",
							"description": "Maximum number of FRCs used to test whether the Node was successfully bonded. If value is 0, then no test is performed and the command always succeeds.",
							"default": 1
						},
						"userData": {
							"type": "array",
							"description": "Optional data passed to the bonded node.",
							"items": {
								"type": "integer",
								"minItems": 4, 
								"maxItems": 4,
								"default": 0
							}
						}
					},
					"required": [
						"deviceAddr",
						"smartConnectCode"
					]
				},
				"returnVerbose": {
					"type": "boolean",
					"description": "Flag that includes additional parameters in the response."
				}
			},
			"required": [
				"msgId",
				"req"
			]
		}
	},
	"required": [
		"mType",
		"data"
	]
}
