Usage

Publisher

The following basic sample code publishes messages to Inbus

#include <inbus/publisher.h>
....

Publisher p("my-app");
p.publish("payload");

This code assumes that the Inbus server is running on localhost on port 7222.

Also, the application type is defaulted to 0.

To specify a particular host-port combination, and publish with application type 123:

#include <inbus/publisher.h>
....

Publisher p("my-app", "192.168.1.23", 8000);
p.publish("payload", 123);

Subscriber

Currently not implemented.

Alternatively, use the Python client