Closed g-berthiaume closed 1 month ago
In the ublox_sara_r4_mqtt.cpp file you can find the following code:
ublox_sara_r4_mqtt.cpp
bool MQTT::publish(const char *topic, const char *msg, uint8_t qos, uint8_t retain) { bool retVal = false; char txBuf[64] = {'\0'}; sprintf(txBuf, "AT+UMQTTC=2,%d,%d,\"%s\",\"%s\""CRLF, qos, retain, topic, msg); retVal = check_with_cmd(txBuf, "+UMQTTC: 2,1", CMD); return retVal; }
Why do you limit the publish AT command size to 64? (therefore limiting the mqtt topic + message to 50 characters) Is there any SARAR4 limitation that could explain this buffer size? Thanks.
In the
ublox_sara_r4_mqtt.cpp
file you can find the following code:Why do you limit the publish AT command size to 64? (therefore limiting the mqtt topic + message to 50 characters) Is there any SARAR4 limitation that could explain this buffer size? Thanks.