Sample Files
docker-compose.yml
Version:"3.2"
services:
egd:
image: "dtr.predix.io/predix-edge/protocol-adapter-egd:amd64-1.1.0"
environment:
config: "/config/config-egd.json"
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
window: 30s
ports:
- target: 18246
published: 18246
protocol: udp
mode: host
networks:
- predix-edge-broker_net
networks:
predix-edge-broker_net:
external: true
config.json
{
"blocks": {
"egd": {
"type": "egdflat",
"config": {
"transport_addr": "egd://<IP address>",
"log_level":"err",
"data_map": {
"4026531967/150/2/1": [
{
"alias": "sine01",
"bit_offset": 1056,
"type": "double"
}
]
}
}
},
"flat_to_timeseries": {
"type": "flattotimeseries",
"config": {
"attributes": {
"machine_type": "egd"
}
}
},
"mqtt_eventhub": {
"type": "cdpout",
"config": {
"transport_addr": "mqtt-tcp://predix-edge-broker",
"node_ref": "eventhub_data/egd_data",
"method": "pub",
"log_level": "err",
"log_name": "mqtt_eventhub"
}
}
},
"mappings": {
"egd:output": "flat_to_timeseries:input",
"flat_to_timeseries:output":"mqtt_eventhub:input"
}
}