Hi Support team,
The communication of my net-core of nRF5340 is working well, and I want to try mqtt subscription, but it always fails, could you help give me some hints?
I try to do the subscription in the event handler of MQTT_EVT_CONNACK:
The MQTT connection succeded, but the subscription is failed, the error code is -22 (#define EINVAL 22 /* Invalid argument */), the trace as below:
The published two topics "spBv1.0/BDS/NCMD/Node1/#" and "spBv1.0/BDS/DCMD/Node1/#" by other mqtt clients, so these two topics have existed on the MQTT server.
Could you help have a look and give some hints as to why subscriptions always fail? Thank you very much.
Best regards,
Yanpeng Wu