Skip to content

Commit fbcae70

Browse files
committed
Add MQTT handling for mosaic
1 parent 2d59440 commit fbcae70

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Firmware/RTK_Everywhere/MQTT_Client.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,14 +589,16 @@ int mqttClientProcessMessage(uint8_t * mqttData, uint16_t mqttCount, int bytesPu
589589
topic);
590590

591591
// For the UM980 or LG290P, we have to pass the data through the PPL first
592-
else if (present.gnss_um980 || present.gnss_lg290p)
592+
else if (present.gnss_um980 || present.gnss_lg290p || present.gnss_mosaicX5)
593593
{
594594
if (((settings.debugMqttClientData == true) || (settings.debugCorrections == true)) && !inMainMenu)
595595
{
596596
if (present.gnss_um980)
597597
systemPrintf("Pushing %d bytes from %s topic to PPL for UM980\r\n", mqttCount, topic);
598598
else if (present.gnss_lg290p)
599599
systemPrintf("Pushing %d bytes from %s topic to PPL for LG290P\r\n", mqttCount, topic);
600+
else if (present.gnss_mosaicX5)
601+
systemPrintf("Pushing %d bytes from %s topic to PPL for mosaic-X5\r\n", mqttCount, topic);
600602
}
601603

602604
if (online.ppl == false && settings.debugMqttClientData == true)
@@ -605,6 +607,10 @@ int mqttClientProcessMessage(uint8_t * mqttData, uint16_t mqttCount, int bytesPu
605607
sendSpartnToPpl(mqttData, mqttCount);
606608
bytesPushed += mqttCount;
607609
}
610+
else
611+
{
612+
systemPrintln("Unhandled receiver mqttClientProcessMessage()");
613+
}
608614
return bytesPushed;
609615
}
610616

0 commit comments

Comments
 (0)