mirror of
https://github.com/Mercantec-GHC/h5-projekt-mst.git
synced 2026-08-27 05:37:39 +02:00
comment out broken code
This commit is contained in:
parent
f194abfe4d
commit
eb32577ae0
@ -26,15 +26,15 @@
|
|||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
auto mqtt_client
|
auto mqtt_client
|
||||||
= mst::mqtt::Client("localhost", BACKEND_MQTT_PORT, "test", "1234");
|
= mst::mqtt::Client("10.133.51.127", BACKEND_MQTT_PORT, "test", "1234");
|
||||||
|
|
||||||
mqtt_client.subscribe("/skateboard/update", [&](std::string_view text) {
|
mqtt_client.subscribe("/skateboard/update", [&](std::string_view text) {
|
||||||
//
|
//
|
||||||
std::println("Skateboard: {}", text);
|
std::println("Skateboard: {}", text);
|
||||||
auto parsed = mst::json::parse(text).value();
|
// auto parsed = mst::json::parse(text).value();
|
||||||
|
|
||||||
std::println(".acceleration[0]",
|
// std::println(".acceleration[0]",
|
||||||
parsed->query(".acceleration[0]").value()->get_i64());
|
// parsed->query(".acceleration[0]").value()->get_i64());
|
||||||
});
|
});
|
||||||
|
|
||||||
auto mqtt_thread = std::thread([&]() {
|
auto mqtt_thread = std::thread([&]() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user