-
Notifications
You must be signed in to change notification settings - Fork 1k
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
payload not equal,MqttWebSocketServer mqttv5 #743
Comments
I have no idea where this comes from, but what I can tell is that MQTT5 currently isn't fully supported in the server project. I'm not sure, but can you maybe try: Console.WriteLine($"+ Payload = {Encoding.UTF8.GetString(e.ApplicationMessage.Payload)}"); instead of: var hex = String.Concat(Array.ConvertAll(payload, x => x.ToString("X2")));
Console.WriteLine($"payload received:{hex}"); from the example under https://github.com/chkr1011/MQTTnet/wiki/Client#consuming-messages? |
After replacing MQTTnet.AspNetCore.SpanBasedMqttPacketWriter with MQTTnet.Formatter.MqttPacketWriter, it works.Maybe something wrong in class MQTTnet.AspNetCore.SpanBasedMqttPacketWriter |
@JanEggers Do you know what's wrong? I assume some wrong buffer offsets, lengths etc.? |
@chkr1011 I can reproduce the error in a test, will work on a fix now |
Perfekt 👍 I will release this with the upcoming release of 3.0.7. And yes we need more tests for 5.0.0 😄 |
@pcbing Please test 3.0.7-rc2. |
It works,thanks |
1 similar comment
It works,thanks |
@JanEggers I am interested what the error was. Can you explain a little bit? |
I increased the 'bytes written' counter twice when copiing a subwriter. that added N times 0 where N is the size of the subwriter. |
Describe the bug
After a message is published, the message received through the mqtt server changes
Which project is your bug related to?
To Reproduce
Steps to reproduce the behavior:
Screenshots
payload published:313233343536
payload received:000000000000000000000000000000000000000000000000000000000000000000000000000000000000313233343536
Code example
The text was updated successfully, but these errors were encountered: