Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D/mqtt: net_read 0:1, break! fail on publish #62

Open
mikkeaa opened this issue Sep 14, 2023 · 4 comments
Open

D/mqtt: net_read 0:1, break! fail on publish #62

mikkeaa opened this issue Sep 14, 2023 · 4 comments

Comments

@mikkeaa
Copy link

mikkeaa commented Sep 14, 2023

I use the paho_mqtt_publish function, and it fails at net_read() function in pahomqtt-v1.1.0\MQTTClient-RT\paho_mqtt_pipe.c.
I downgraded from 4.1.1->4.1.0, both fails, but 4.0.5 is working !?

@mikkeaa
Copy link
Author

mikkeaa commented Sep 15, 2023

The problem isn't in this package, but in the broker moquitto. I changed the broker and all is working well now.

@hywing
Copy link

hywing commented Nov 18, 2023

The problem isn't in this package, but in the broker moquitto. I changed the broker and all is working well now.

How you do this?

@hywing
Copy link

hywing commented Nov 18, 2023

I suppose there is something wrong with the paho MQTTMessage that sends to mosquitto broker because I cannot get the publish ack from the broker.
image

@hywing
Copy link

hywing commented Nov 18, 2023

It seems like that we must provide a packet identifier for each MQTTMessage according to the MQTT Standard, the struct member id must not be 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants