-
Notifications
You must be signed in to change notification settings - Fork 23
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
byte integer is null or empty error #17
Comments
Which example? Please specify the example in question turn on logging and post the output. |
mqtt5_client_publish_qos1.dart I was trying to connect through local network (192.168.0.252) with topic 'GtoA' Invalid argument(s): MqttByteIntegerEncoding::toInt byte integer is null or empty |
Your problem is here -
You are not connecting to the broker. |
flutter: EXAMPLE::Mqtt5 client connecting.... |
Connection isn't complete until a connect ack message is received, this is not happening -
This should be a valid connect ack message, it can't have a length of 4, if your broker finds something wrong with the connect message it should close the connection, if not it should send a connect ack. It shouldn't send an empty packet. Maybe check your broker logs. |
This is an mqtt5 client not a 3 client your broker must bevable to use the mqtt5 protocol |
Thank you, I was using wrong version |
While running your example is giving an error MqttByteIntegerEncoding::toInt byte integer is null or empty
The text was updated successfully, but these errors were encountered: