FATAL: Error parsing config file: Failed to parse JSON: * Line 46, Column 3
Missing ‘}’ or object member name
вот такая ошибка вылезает
{
"debug": false,
"ports": [{
"path": "/dev/ttyRS485-1",
"devices": [{
"slave_id": "0x64",
"device_type": "First-test",
"name": "First-test",
"channels": [{
"name": "First-test-1",
"type": "value",
"reg_type": "holding",
"address": "0x64",
"format": "u64",
"scale": 1,
"offset": 0
},
{
"name": "First-test-2",
"type": "value",
"reg_type": "holding",
"address": "0x65",
"format": "u64",
"scale": 1,
"offset": 0
},
{
"name": "First-test-3",
"type": "value",
"reg_type": "holding",
"address": "0x66",
"format": "u64",
"scale": 1,
"offset": 0
},
{
"name": "First-test-4",
"type": "value",
"reg_type": "holding",
"address": "0x67",
"format": "u64",
"scale": 1,
"offset": 0
}
]
}],
{
"port_type": "serial",
"baud_rate": 115200,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 10,
"enabled": true,
"type": null,
"response_timeout_ms": 1500
},
{
"path": "/dev/ttyMOD1",
"devices": [],
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 10,
"enabled": false
},
{
"path": "/dev/ttyRS485-1",
"devices": [{
"slave_id": "0x64",
"device_type": "First-test"
}],
"baud_rate": 115200,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 1500,
"enabled": true
},
{
"path": "/dev/ttyMOD2",
"devices": [],
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 10,
"enabled": false
},
{
"path": "/dev/ttyMOD3",
"devices": [],
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 10,
"enabled": false
}
]
}}
пытался понять через нотпад++ где косяк, но по скобкам вроде все верно