Akce
Task #8872
uzavřenýUkládat ID klienta
Začátek:
2021-05-07
Uzavřít do:
% Hotovo:
100%
Odhadovaná doba:
2.00hod
Tags:
Aktualizováno uživatelem Martin Forejt před téměř 4 roky(ů)
Ukládat ID klienta, ze kterého chodí zprávy
jak do soubor, tak do logu
Aktualizováno uživatelem Martin Forejt před téměř 4 roky(ů)
The MQTT specification has no field in the PUBLISH packet to specify which publisher a certain message comes from.
I can think of two possible "work-around" implementations:
1) Add the publisher information in the payload of the message. Application level parsing would allow you to retrieve the publisher ID from the message payload.
2) Add the publisher information in the topic. You could concoct a clever topic hierarchy with a level dedicated to the publisher.
Aktualizováno uživatelem Martin Forejt před téměř 4 roky(ů)
- Stav změněn z New na Resolved
- % Hotovo změněn z 0 na 100
Aktualizováno uživatelem Milan Kohoutek před téměř 4 roky(ů)
- Stav změněn z Resolved na Closed
Akce