I'm testing an MQTT client setup with the Eclipse test server. I noticed off is sent automatically to every topic my client subscribes to, and the retain flag is set. I can see the logic behind it but so far, I haven't found this broker feature documented anywhere so I was wondering if anyone has had a similar experience or has more details about any documentation for this broker. Is it intended or is the public broker topic-space just global and I'm getting someone's messages?
Asked
Active
Viewed 19 times
0
SoreDakeNoKoto
- 163
- 5
1 Answers
1
Without seeing your code so we know what topics you are subscribed to this is really hard to answer.
But, yes this is a totally public broker with a single shared topic space for all users. So it is very likely that you are receiving a message published by a previous user.
It should really only be used to test MQTT client implementations and not for anything of value since at any time anybody could publish to any topic or it could go down (the eclipse broker is set to change URL and implementation soon [July 2019])
hardillb
- 12,813
- 1
- 21
- 34