{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/modemList.json",
    "type": "array",
    "title": "Modem list",
    "examples": [
        [
            {
                "interface": "ttyUSB4",
                "imei": "490154203237518",
                "manufacturer": "huawei",
                "model": "E3131",
                "state": "registered",
                "failedReason": null,
                "signal": 80,
                "rssi": -63
            }
        ]
    ],
    "items": {
        "type": "object",
        "title": "Modem",
        "description": "Information about a LTE Modem.",
        "required": [
            "interface",
            "imei",
            "manufacturer",
            "model",
            "state",
            "failedReason",
            "signal",
            "rssi"
        ],
        "additionalProperties": false,
        "properties": {
            "interface": {
                "title": "Modem network interface",
                "type": "string",
                "description": "Network interface used by the LTE modem.",
                "example": "cdc-wdm0"
            },
            "imei": {
                "title": "Modem IMEI",
                "type": "string",
                "description": "IMEI of the LTE modem.",
                "example": "490154203237518"
            },
            "manufacturer": {
                "title": "Modem manufacturer",
                "type": "string",
                "description": "Manufacturer of the LTE modem.",
                "example": "huawei"
            },
            "model": {
                "title": "Modem model",
                "type": "string",
                "description": "Model of the LTE modem.",
                "example": "E3131"
            },
            "state": {
                "title": "Modem state",
                "type": "string",
                "enum": [
                    "failed",
                    "unknown",
                    "initializing",
                    "locked",
                    "disabled",
                    "disabling",
                    "enabling",
                    "enabled",
                    "searching",
                    "registered",
                    "disconnecting",
                    "connecting",
                    "connected"
                ],
                "description": "State of the LTE modem.",
                "example": "registered"
            },
            "failedReason": {
                "title": "Modem failed reason",
                "type": [
                    "string",
                    "null"
                ],
                "enum": [
                    "esim-without-profiles",
                    "none",
                    "sim-error",
                    "sim-missing",
                    "unknown",
                    "unknown-capabilities",
                    null
                ],
                "description": "Reason why the modem failed to connect.",
                "example": null
            },
            "signal": {
                "title": "Modem signal",
                "description": "Modem signal strength.",
                "type": "integer",
                "minimum": 0,
                "maximum": 100,
                "example": 80
            },
            "rssi": {
                "title": "RSSI",
                "description": "RSSI dBm",
                "type": [
                    "number",
                    "null"
                ],
                "example": -63
            }
        }
    }
}
