blob: 291527a04e7c361a486dd6115b885c692a77c9dd [file] [log] [blame]
#include <chrono> // NOLINT
#include <iostream>
#include <string>
#include <thread> // NOLINT
#include "tlbmc/hal/shared_mem/client.h"
int main() {
std::cout << "SharedMemoryClient: " << '\n';
float value = 0.0f;
while (true) {
milotic_tlbmc::SharedMemoryClient::GetInstance()
.UpdateSensorValue("sensor001", value).IgnoreError();
std::cout << "Set Sensor value: " << value << "\n";
value += 1.0f;
std::this_thread::sleep_for(std::chrono::microseconds(1));
}
return 0;
}