Comments (8)
If it is missing it is a bug. I also remember adding support for it. Probably I forgot a place. Can you give me some details why you mentioned this?
from mqttnet.
Sure. I'm in the process for creating a cross platform Xamarin MQTT Tester app and was implementing Publish and noticed that the Dub Flag was missing.
from mqttnet.
Cool, let me know if this library works with Xamarin. I also have a app on my wishlist but you are faster.
But what exactly do you mean with the "missing" Dub-Flag? In the MqttApplicationMessage? From my understanding a user cannot set it actively. Only the client can use it internally and let the server know that the message was already sent. Or at least tried.
from mqttnet.
Sure, but in a test scenario that is what you might want to do.
And yes, the library world fine with Xamarin.
from mqttnet.
OK so only for testing purposes but not a real live scenario. I have doubts exposing it. Let me read some documents about MQTT. I will decide then 😄
Awesome. I tried it with Xamarin.Android but it didn't work. The code always stops after ConnectAsync. It simply hangs and I didn't found a solution. The debug output shows zillions of error because lots of .net libraries were not found. Can you tell me what you have done? Anything special beside adding proper app permissions like Internet?
from mqttnet.
I just found that line in the official docs:
It is important to note that the DUP flag refers to the Control Packet itself and not to the Application Message that it contains.
As far as I understand this it means that the Dup flag shall not be exposed to a application message. Only the client uses it internally for its communication retries etc. I also didn't find something else. If I expose it the value must be validated. Sending 0 and it was already tried is a protocol violation. Also sending 1 and it was never sent before is also a violation. So in my opinion this will only produce more problems. What do you think?
from mqttnet.
Sound right. I didn't study the spec that close.
Regarding Xamarin. It just worked. I don't recall any issues.
I'm using it with the latest version of Xamarin. Maybe it's because I've set it up with .Net Standard.
from mqttnet.
Just found this:
DUP flag
The duplicate flag indicates, that this message is a duplicate and is resent because the other end didn’t acknowledge the original message. This is only relevant for QoS greater than 0 and more details are in part 6, which is about QoS levels. This resend/duplicate mechanism is typically handled by the MQTT client library or the broker as an implementation detail.
Also, see here in section 3.3.1.1 Dup in the OASIS 3.1.1. Spec
from mqttnet.
Related Issues (20)
- My client receive Disconnected when I set mqqtv5 to connect emqx bloker HOT 1
- Mqtt client with web API
- Client and server channels based on WebsocketSharp implementation of web sockets
- The server shuts down too slowly. HOT 2
- Support for RecyclableMemoryManager, client write support for ReadOnlySequence as payload
- MqttClient.ConnectAsync() with Tls enabled: 'RemoteCertificateChainErrors' (RevocationStatusUnknown) on Android, but not on iOS HOT 1
- MQTTnet.Exceptions.MqttCommunicationTimedOutException HResult=0x80131500 Message=The operation has timed out. Source=mscorlib StackTrace: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in System.Runtime.CompilerServices\TaskAwaiter.cs:line 78 此异常最初是在此调用堆栈中引发的: HOT 1
- Issue with Establishing Secure WebSocket Connection to AWS IoT MQTT Server on .NET Framework 4.x
- Requesting the last data from mqtt broker HOT 1
- mqttnet is missing NuGet package README file
- mqttnet.extensions.managedclient is missing NuGet package README file HOT 1
- Get the ClientID of Sender client HOT 1
- How do i authorize whit Username and Password? HOT 1
- Trying to run this sample code(https://github.com/dotnet/MQTTnet) from visual studio 2022 but getting many errors HOT 1
- Not able to run the sample code HOT 2
- Not able to establish tls connection with azure event grid mqtt server HOT 2
- 链接频繁断开【异常断线触发重连】错误信息:Not allowed to connect while connect/disconnect is pending.
- How do you specify the protocol version which MqttServer supports? HOT 1
- Missing assemblies when building the solution HOT 1
- Gg HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqttnet.