79604050

Date: 2025-05-02 20:08:14
Score: 2
Natty:
Report link

Since MQTT v5 was released the year after this question was posted, I'd suggest putitng the sensor ID in the User Properties map of each message. That seems a better place for it as an identifier vs. the topic or the payload. Yes, it will increase the message size, but no more (not much more?) than having it in the topic or payload.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Aaron