#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name=plc-0
connector.class=org.apache.plc4x.kafka.Plc4xSourceConnector
default-topic=test
tasks.max=2

sources=machineA

sources.machineA.connectionString=s7://10.10.64.20/1/1
sources.machineA.jobReferences=s7-dashboard,s7-heartbeat
sources.machineA.jobReferences.s7-heartbeat.topic=heartbeat

jobs=s7-dashboard,s7-heartbeat

jobs.s7-dashboard.interval=1000
jobs.s7-dashboard.fields=conveyorEntry,load,unload,transferLeft,transferRight,conveyorLeft,conveyorRight
jobs.s7-dashboard.fields.conveyorEntry=%Q0.0:BOOL
jobs.s7-dashboard.fields.load=%Q0.1:BOOL
jobs.s7-dashboard.fields.unload=%Q0.2:BOOL
jobs.s7-dashboard.fields.transferLeft=%Q0.3:BOOL
jobs.s7-dashboard.fields.transferRight=%Q0.4:BOOL
jobs.s7-dashboard.fields.conveyorLeft=%Q0.5:BOOL
jobs.s7-dashboard.fields.conveyorRight=%Q0.6:BOOL

jobs.s7-heartbeat.interval=500
jobs.s7-heartbeat.fields=active
jobs.s7-heartbeat.fields.active=%Q0.1:BOOL

bootstrap.servers=localhost:9092
key.converter=org.apache.kafka.connect.json.JsonConverter
value.converter=org.apache.kafka.connect.json.JsonConverter
key.converter.schemas.enable=true
value.converter.schemas.enable=true
offset.storage.file.filename=/tmp/connect.offsets
offset.flush.interval.ms=10000
