aboutsummaryrefslogtreecommitdiff
path: root/apps/sm-get-value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sm-get-value.cpp')
-rw-r--r--apps/sm-get-value.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/sm-get-value.cpp b/apps/sm-get-value.cpp
index 42f5da3..483df70 100644
--- a/apps/sm-get-value.cpp
+++ b/apps/sm-get-value.cpp
@@ -109,7 +109,7 @@ public:
auto epoch = system_clock::now().time_since_epoch();
auto timestamp = duration_cast<seconds>(epoch).count();
auto unique_output_stream = open_sample_output_stream(shared_ptr<ostream>(&cout, noop_deleter), dict, format);
- shared_ptr<SampleOutputStream> output_stream{std::move(unique_output_stream)};
+ shared_ptr<SampleConsumer> output_stream{std::move(unique_output_stream)};
auto sample = SampleRecord(dict)
.set(hostname_key, get_hostname())
@@ -138,7 +138,7 @@ public:
i++;
}
- output_stream->write(sample);
+ output_stream->onSample(sample);
}
void withConnection(sample_format_type format, shared_ptr<BluetoothGatt> gatt) {