Commit 70cb1fb0 authored by Georg Vinogradov's avatar Georg Vinogradov
Browse files

Send double message instead of str

parent a8845022
......@@ -34,7 +34,12 @@ void MqttAdapter_tests_a_compA::init(tests_a_compA *comp)
void MqttAdapter_tests_a_compA::publish_echoPublisher()
mqtt::message tmpMsg;
double value = component->rosOut;
uint8_t *buf = (uint8_t*)&value;
tmpMsg.set_payload(buf, 8); // pointer to byte buffer of length 8
try {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment