Struct PntosTransportPlugin
Defined in File transport.h
Struct Documentation
-
struct PntosTransportPlugin
A plugin that abstracts a network transport, listening for sensor data off the wire and sending data back to the sensors as needed.
Public Members
-
PntosCommonPlugin common
-
void (*start_listening)(struct PntosTransportPlugin *self)
Start listening to the transport that this plugin implements, calling the appropriate controller function as data streams in.
-
void (*stop_listening)(struct PntosTransportPlugin *self)
Disable listening to the transport that was previously started in a call to start_listening.
-
void (*broadcast_message)(struct PntosTransportPlugin *self, PntosMessage *message, char *channel_name)
Send a message back out to the sensor from pntOS. If
channel_nameis NULL the implementation may decide wheremessageshould be routed, if anywhere. For example, a serial cable might send all messages to a single destination.
-
PntosCommonPlugin common