17 lines
384 B
C++
17 lines
384 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
namespace borla {
|
|
|
|
class ISensorMessageSink {
|
|
public:
|
|
virtual ~ISensorMessageSink() = default;
|
|
|
|
// Sensor data is best effort. A false result means the connection is not
|
|
// ready or the bounded transport queue is full; callers must drop it.
|
|
virtual bool SendSensorMessage(const char* data, size_t size) = 0;
|
|
};
|
|
|
|
} // namespace borla
|