AT+QMTPUB doesn't like any msgID other than zero

When I do this (AT+QMTPUB=3,0), it works:

AT+QMTPUB=3,0,0,0,"/my/topic"
> {"msg":"Hello"}^Z
OK
+QMTPUB: 3,0,0

But when I do this (AT+QMTPUB=3,1), it fails:

AT+QMTPUB=3,1,0,0,"/my/topic"
[2023-05-02_16:17:23:919]ERROR

Why does it reject msgID 1?

No, of course messageid can be other values, I think there may be something wrong with your code, please check it carefully

I may well be doing something wrong.
Could you please provide a QCOM log that shows a non-zero messageid working for you?
Meaning, the log shows you issuing a AT+QMTPUB with a non-zero messageid where the modem does NOT respond with ERROR.
Is there any setup in QMTOPEN and/or QMTCONN (and/or something else) that’s required to allow non-zero messageid’s?

Thanks,
-Dave

The answer is:
msgId must be zero when QoS is zero.
If QoS > 0 then msgId is allowed to be nonzero.

This is NOT allowed:
AT+QMTPUB=3,1,0,0,“/my/topic”

this IS allowed:
AT+QMTPUB=3,1,1,0,“/my/topic”

Yes, messageid is set differently for different types of modules, some can start at 0, others at 1