Struct PntosTransportPlugin

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_name is NULL the implementation may decide where message should be routed, if anywhere. For example, a serial cable might send all messages to a single destination.