Failed to connect to Mi Kettle-TypeError: Cannot read property 'StartNotify' of undefined
See original GitHub issueHi everyone,
I follow the readme to install the package. I’ve cloned the repo, done npm install, configured cybele as follows
{
"mqtt": {
"url": "MQTT"
},
"dongles": [
{
"hciDevice": "hci0",
"mode": "le",
"services": [],
"devices": [{
"type": "MiKettleDevice",
"friendlyName": "Mi Kettle",
"mac": "MAC",
"productId":1116
}
]
}
]
}
Connected to MQTT Broker
Startup complete
/home/pi/Cybele/lib/devices/MiKettle/MiKettleDevice.js:166
this.characteristicsByUUID[MiKettleDevice.CHARACTERISTICS.auth].StartNotify([], err => {
^
TypeError: Cannot read property 'StartNotify' of undefined
at /home/pi/Cybele/lib/devices/MiKettle/MiKettleDevice.js:166:73
at Object.item.task (/home/pi/Cybele/node_modules/semaphore/lib/semaphore.js:40:29)
at Object.take (/home/pi/Cybele/node_modules/semaphore/lib/semaphore.js:51:9)
at MiKettleDevice.doAuthStageTwo (/home/pi/Cybele/lib/devices/MiKettle/MiKettleDevice.js:165:20)
at Object.<anonymous> (/home/pi/Cybele/lib/devices/MiKettle/MiKettleDevice.js:156:22)
at EventEmitter.<anonymous> (/home/pi/Cybele/node_modules/dbus-native/lib/bus.js:138:19)
at EventEmitter.emit (events.js:388:22)
at /home/pi/Cybele/node_modules/dbus-native/index.js:106:14
at Socket.<anonymous> (/home/pi/Cybele/node_modules/dbus-native/lib/message.js:55:9)
at Socket.emit (events.js:376:20)
Any ideas what’s wrong?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'error' of undefined
I already define error. however, it is giving error that "TypeError: Cannot read property 'error' of undefined". I am stock here.
Read more >ERROR TypeError: Cannot read property title of undefined
HEY, SET YOUR LIKE THERE ! ... Your browser can't play this video. ... Solved: ERROR TypeError : Cannot read property title of...
Read more >React TypeError: Cannot read property function of undefined
Your browser can't play this video. Learn more. Switch camera ... Solved: React TypeError : Cannot read property function of undefined.
Read more >TypeError: Cannot read property 'data' of undefined
To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.
Read more >Cannot read property 'data' of undefined : r/node - Reddit
Unhandled Rejection (TypeError): Cannot read property 'data' of undefined. I'm using express-fileupload to upload files but I have a problem ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m not working on this.
@Hypfer can we anyhow assist you? Providing logs or smthg else?