1#ifndef VRPN_OMEGATEMPERATURE_H
2#define VRPN_OMEGATEMPERATURE_H
34#if defined(VRPN_USE_MODBUS) && defined(VRPN_USE_WINSOCK2)
44 const char * port,
float temp1,
float temp2,
46 ~vrpn_OmegaTemperature () {};
56 struct timeval timestamp;
58 virtual int reset(
void);
59 virtual int get_report(
void);
62 bool set_reference_temperature(
unsigned channel,
float value);
63 bool set_control_status(
bool on);
64 bool request_temperature(
unsigned channel);
69 bool set_specified_channel(
unsigned channel, vrpn_float64 value);
73 unsigned d_next_channel_to_read;
75 float convert_bytes_to_reading(
const char *buf);
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Send a report whether something has changed or not (for servers) Optionally, tell what time to stamp ...
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
Send a report only if something has changed (for servers) Optionally, tell what time to stamp the val...
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
This structure is what is passed to a vrpn_Connection message callback.
const vrpn_uint32 vrpn_CONNECTION_RELIABLE
Classes of service for messages, specify multiple by ORing them together Priority of satisfying these...