mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 09:43:03 +00:00
Try to decode mqtt packets first (#1705)
* Try to decode first * Remove GPS pins from TLoRAv1 so that it can boot * Use release version of radio lib * Use fixed versions of esp framework and tool chain
This commit is contained in:
@@ -27,8 +27,7 @@ void MQTT::onPublish(char *topic, byte *payload, unsigned int length)
|
||||
{
|
||||
// parsing ServiceEnvelope
|
||||
ServiceEnvelope e = ServiceEnvelope_init_default;
|
||||
if (moduleConfig.mqtt.json_enabled && !pb_decode_from_bytes(payload, length, ServiceEnvelope_fields, &e)) {
|
||||
|
||||
if (!pb_decode_from_bytes(payload, length, ServiceEnvelope_fields, &e) && moduleConfig.mqtt.json_enabled) {
|
||||
// check if this is a json payload message
|
||||
using namespace json11;
|
||||
char payloadStr[length + 1];
|
||||
|
||||
Reference in New Issue
Block a user