|  Developer
Updated on November 11, 2021

hub.settings.list

Connection type:
  • Ask controller to send a list of its settings
Edit
Field Type Required Description
names array of strings Return only specified settings, if not specified – return all settings
Edit
Field Type Required Description
settings array of objects + Controller settings
settings.[].name string + Type of value: , , ,
settings.[].valueType string + Feature status
settings.[].enum array of strings List of possible token values
settings.[].value depends on valueType + Current value
Edit
Edit
				
					{
    "method": "hub.settings.list",
    "id": "_ID_",
    "params": {}
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "method": "hub.settings.list",
    "result": {
        "settings": [
            {
                "enum": [
                    "mmddyy",
                    "ddmmyy"
                ],
                "name": "date.format",
                "value": "mmddyy",
                "valueType": "token"
            },
            {
                "name": "first_start",
                "value": true,
                "valueType": "bool"
            },
            {
                "enum": [
                    "celsius",
                    "fahrenheit"
                ],
                "name": "scale.temperature",
                "value": "fahrenheit",
                "valueType": "token"
            },
            {
                "enum": [
                    "12",
                    "24"
                ],
                "name": "time.format",
                "value": "12",
                "valueType": "token"
            },
            {
                "enum": [
                    "ERROR", "WARNING", "INFO", "DEBUG", "TRACE"
                ],
                "name": "logs.level",
                "value": "INFO",
                "valueType": "token"
            },
            {
                "name": "logs.color",
                "value": false,
                "valueType": "bool"
            },
            {
                "enum": [
                    "-1", "2", "4", "8"
                ],
                "name": "logs.indent",
                "value": "-1",
                "valueType": "token"
            }
        ]
    }
}				
			
Edit