You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cap.js
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ export default { open };
53
53
* @param {object} [options.out.mqtt.client] the MQTT client instead of creating a new one. attention: calling close() will *not* close this client
54
54
* @param {string} [options.out.mqtt.topic='zbtk'] the MQTT topic to publish the packets to
55
55
* @param {number} [options.bufferSize=10485760] the buffer size to use for packet capture
56
+
* @param {function} [options.bufferFormat] a function to format buffers before emitting them to console / MQTT
56
57
* @returns {Promise<EventEmitter>} a promise to an event emitter (with an additional close method), emitting events of 'options.emit' and 'error' events
57
58
*/
58
59
exportasyncfunctionopen(device,options){
@@ -329,21 +330,22 @@ export async function open(device, options) {
329
330
constattr={// same as for the context variables, expose big-endian instead of little-endian
0 commit comments