Closed renrenfree closed 7 years ago
The payload should be the client id: https://github.com/mcollina/mosca/blob/master/lib/server.js#L240-L244.
Feel free to open up a PR to fix an issue, if it's there.
I think this is helpful~
{"pid":9548,"hostname":"MacBook-Pro.local","name":"mqtt","level":20,"time":1474512820344,"msg":"Forwarding offline packet","packet":{"messageId":"ryo3Dae6","topic":"$SYS/rk8Wwaep/new/clients"},"client":"123-c1","v":1} Published { topic: '$SYS/rk8Wwaep/new/clients', payload: '123-c1', messageId: 'By23Daea', qos: undefined, retain: undefined }
if (data.added.getTime() + that.options.ttl.packets > now) { data.packet.payload = data.packet.payload.buffer; cb(null, data.packet); }
I'm still lost. Can you send some code using MQTT.js or mqtt-packet that demonstrate the issue?
Wow, Pony? It is you? @renrenfree
Closing for no activity. Feel free to reopen.
why the payload is empty?