Node-RED Node


#42

I did some digging on the log files. This might be the cause for my problems:

(node:293) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 scanStop listeners added. Use emitter.setMaxListeners() to increase limit

Any idea why the scanStop is piling up the listeners?


#43

Hi!

I copypasted this to Node-Red, but it seems that I can’t get any MQTT messages. I did setcaps command and everyting seems OK.

pi@raspberrypi:~ $ sudo systemctl status nodered.service
● nodered.service - Node-RED graphical event wiring tool
   Loaded: loaded (/lib/systemd/system/nodered.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-01-18 09:56:24 GMT; 3min 0s ago
     Docs: http://nodered.org/docs/hardware/raspberrypi.html
 Main PID: 314 (node-red)
   CGroup: /system.slice/nodered.service
           └─314 node-red

Jan 18 09:56:39 raspberrypi Node-RED[314]: your credentials.
Jan 18 09:56:39 raspberrypi Node-RED[314]: You should set your own key using the 'credentialSecret' option in
Jan 18 09:56:39 raspberrypi Node-RED[314]: your settings file. Node-RED will then re-encrypt your credentials
Jan 18 09:56:39 raspberrypi Node-RED[314]: file using your chosen key the next time you deploy a change.
Jan 18 09:56:39 raspberrypi Node-RED[314]: ---------------------------------------------------------------------
Jan 18 09:56:39 raspberrypi Node-RED[314]: 18 Jan 09:56:39 - [info] Starting flows
Jan 18 09:56:39 raspberrypi Node-RED[314]: 18 Jan 09:56:39 - [warn] [scan ble:2905abd3.fa5084] Unable to start BLE scan. Adapter state: unknown
Jan 18 09:56:39 raspberrypi Node-RED[314]: 18 Jan 09:56:39 - [info] Started flows
Jan 18 09:56:39 raspberrypi Node-RED[314]: 18 Jan 09:56:39 - [info] [scan ble:2905abd3.fa5084] Scanning for BLEs started. UUIDs:  - Duplicates allowed: false
Jan 18 09:56:40 raspberrypi Node-RED[314]: 18 Jan 09:56:40 - [info] [mqtt-broker:bcb91c28.92549] Connected to broker: mqtt://192.168.1.112:1883
pi@raspberrypi:~ $ hcitool dev
Devices:
        hci0    B8:27:EB:30:32:59
pi@raspberrypi:~ $

How to check what’s wrong?


#44

On a quick glance the issue might be
Jan 18 09:56:39 raspberrypi Node-RED[314]: 18 Jan 09:56:39 - [info] [scan ble:2905abd3.fa5084] Scanning for BLEs started. UUIDs: - Duplicates allowed: false

You should allow duplicates, otherwise you’ll receive one transmission per mac address