Client class implementation
The VDH client layer provides the input mechanism for connecting vehicles devices to IBM® IoT Connected Vehicle Insights and the data flows. After you create a client layer class, you must then implement the class by configuring it in the gateway.properties file.
To implement a client class that was created in the previous step, add the client-related properties to the gateway.properties file, as shown in the following example:
# Client Description
# Number of the clients
client.num=2
# HTTP Interface for Car Probe/Event
client.client1=com.ibm.mobility.autodrive.client.def.DefaultHTTPClient
# in case http, special process is needed
client.client1.protocol=http
# only data from a specific agent is dispatched
client.client1.agent=SM_API
# MQTT Interface for Car Probe/Event
client.client2=com.ibm.iot.automotive.client.MQTTClient
client.client2.name=MQTT client
client.client2.protocol=mqtt