Open ondics opened 3 years ago
customerId is passed in separate env variable. so BCC_config.json reduces to:
[
{
"machineId": "xxx",
"mqtt-topic": "kosmos/machine-data/<machineId>/Sensor/tbd/Update",
"blockchain-endpoint": "http://blockchain-api/api/machine/<machineId>/prodData",
"mapping": "none"
},{
...
}
]
ok, even better if we extract the sensor-id
also:
[
{
"machineId": "...",
"sensorId": "...",
"mqtt-topic": "kosmos/machine-data/<machineId>/Sensor/<sensorId>/Update",
"blockchain-endpoint": "http://blockchain-api/api/machine/<machineId>/prodData",
"mapping": "none"
},{
...
}
]
to values: