onPacketreceive/onPacketsend observables don't include packet's info
sinexflecs opened this issue · comments
sinexflecs commented
Hi,
I've been trying to use the onPacketreceive/onPacketsend events to collect data from the packets without success.
The event is triggered but the packet data is always undefined:
this._mqttService.onPacketreceive.asObservable()
.subscribe(t => {
console.log('onPacketreceive', t);
});
this._mqttService.onPacketsend.asObservable()
.subscribe(packet => {
console.log('onPacketsend', packet);
});
Everything else works fine, except this.
Am I using it wrong?
Thanks!
Sebastian Clausen commented
Yes, you're right, that was an actual bug. Thank's for noticing.