noble/bleno

TypeError: Object #<Object> has no method 'emit'

Open

#297 opened on Apr 26, 2017

View on GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (465 forks)batch import
help wanted

Repository metrics

Stars
 (2,083 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

When I set my BLE module as the peripheral mode and run the echo example.

If I subscribe the indication and then unsubscribe it, the following error will occur.

root: /home/ubuntu/test/node_modules/bleno/lib/hci-socket/gatt.js:914 handleAttribute.emit('unsubscribe'); ^ TypeError: Object # has no method 'emit'

Contributor guide