Examples#
Control class examples#
The directory examples/all_classes
contains a device which implements many
different control classes. They can be used as a starting point when
implementing a specific control class.
The directory examples/all_classes_simpleoca
contains a similar device which
uses simpleoca.
Static device examples#
The directory examples/devices
contains several static device examples.
Firmware update#
The directory examples/firmware_update
contains an example implementation of the
OcaFirmwareManager.
Multi-Threaded controller#
The directory examples/multithread_controller
contains an example of how to
use the controller library in a multi-threaded environment.
POSIX UDP#
The directory examples/posix_udp
contains an example for how to use this library
without an event loop with UDP.
Simple Controller#
The directory examples/simple_controller
contains an example which uses a device
with custom object numbers
Session handling#
In some applications it can be necessary to change the behavior of a device
depending on the connection. The example in examples/sessions
makes certain
parameters read-only for sessions which have not authenticated.