-
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
MqttNetTrace #68
Comments
Hi, I am also interested in the use case for having multiple clients. Can you give me some details? Best regards |
@haeberle , yes please. Which are the case when more clients on the same machine are needed? |
Thanks Christian sure, the app has to translate data between two or more brokers and also other protocols, like KNX, Siemens Logo, S7, etc. And also to act as a broker if needed. |
I can share the code if needed, I did the trace changes already and the test is running... |
@haeberle Thank you but sharing is not required. I already changed a lot due to new features. Writing it on my own seems to be faster 😄 Sounds like a smart home project. Tell me more. I also have a smart home project called "Wirehome" which is also here on GitHub. So I am very interested 😄 Best regards |
@haeberle I refactored the tracing. You can find an example in the Wiki and the code in the develop branch. Please let me know if this fits your needs. |
Perfect Christian, I will test it. Thanks a lot. I will share more infos about the project if I have stable Mqtt Service. |
@haeberle Thanks 😄 I will close this ticket. If you need something please reopen it. @JanEggers is refactoring the tracing at the moment. So the API will change (a lot) but it is still possible to distinguish between the clients and also the server components. |
In my app I have to instantiate more than one client. Issue is, as long the MqttNetTrace is a static class, I’m not able to differentiate messages between the different client or server instances in my app. I defined an interface based on the MqttNetTrace and added the interface as property in the MqttServerOptions / MqttClientOptions and reimplement the MqttNetTrace based in the Interface but not static.
I’m not sure how I can share the changes, but from my view that helps to go away from a predefined static trace model.
Regards
Hans
The text was updated successfully, but these errors were encountered: