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

Connection to HiveMQ or DIoTY works for only a few minutes #12

Open
Wdestroier opened this issue Sep 28, 2021 · 3 comments
Open

Connection to HiveMQ or DIoTY works for only a few minutes #12

Wdestroier opened this issue Sep 28, 2021 · 3 comments
Assignees

Comments

@Wdestroier
Copy link

Hi! I have tried to connect from the testing environment ( https://testing.opensensemap.org/ ) to HiveMQ over MQTTS and after a minute or two published messages aren't saved anymore or the client disconnects. I ran the project locally and the connection isn't closed, all the messages sent to the broker are received, even after 15+ minutes running. The same behavior happens when trying to connect over MQTT to https://dioty.co/ from the prod environment ( https://opensensemap.org/ ). Changing the topic or connection options and saving the config makes the connection work for the next 1-2 minutes. The integration with MyQttHub works perfectly in the prod env, the client doesn't disconnect. Is this a testing environment specific issue?

@mpfeil
Copy link
Member

mpfeil commented Sep 28, 2021

Hi @Wdestroier,

thanks for your feedback. I am going to investigate it.
The changes are not deployed to the prod environment. So I guess it is a testing specific issue.

@mpfeil mpfeil self-assigned this Sep 28, 2021
@mpfeil
Copy link
Member

mpfeil commented Jan 7, 2022

Sorry for the late reply.
I am back on this issue and tried a MQTTS connection to HiveMQ on the testing environment for several minutes without any connection issues.

dioty.co is not existing anymore right?

@Wdestroier maybe you can share your local project with me.

@Wdestroier
Copy link
Author

Hi @mpfeil,
I just tested and the messages aren't processed after 5 minutes...
Steps to reproduce the problem:

  1. Access http://www.hivemq.com/demos/websocket-client/
  2. Fill the authentication form and login
  3. Access openSenseMap and configure the senseBox's MQTT integration
    Url: mqtts://user:[email protected]
    Topic: /devices/5
    Message format: json
    Decoding options: empty/blank/none
    Connection options: { "clientId": "openSenseMap-1" }
  4. Set the HiveMQ client's topic and message
    Topic: /devices/5
    QoS: 0
    Message: { "sensorId": "value" }

I've already made the communication with AWS instead of HiveMQ, but this feature may be useful to others...

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

No branches or pull requests

2 participants