calaos / calaos_base

Calaos server
https://calaos.fr
GNU General Public License v3.0
160 stars 37 forks source link

MQTT payload can only be JSON formated #161

Open raoulh opened 1 year ago

raoulh commented 1 year ago

Here: https://github.com/calaos/calaos_base/blob/543114d3e50972fd43808a439208967c3403db0c/src/bin/calaos_server/IO/Mqtt/MqttCtrl.cpp#L221

When reading MQTT payload received on a subscribed topic, the actual code only parse this as Json. If it's not Json, it failed.

Add support for non-Json payload