Cannot read property '<nodeid>' of undefined

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
bytelock
Posts: 1
Joined: 16 Oct 2014 01:51

Cannot read property '<nodeid>' of undefined

Post by bytelock »

According to the dev docs this should work:

Code: Select all

obovoid:~/projects/zway> cat test.sh                                                                                                                                                                                                                                      
#!/bin/sh
HOST="10.0.0.17:8083"
curl ${HOST}'/ZWaveAPI/Run/Devices\[7\].instances\[1\].commandClasses\[0x20\].Set(255)'
obovoid:~/projects/zway> ./test.sh                                                                                                                                                                                                                                        
Error 500: Internal Server Error
Uncaught TypeError: Cannot read property '7' of undefined%                                                                                                                                                                                                                      obovoid:~/projects/zway>
it doesn't. help?
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Cannot read property '<nodeid>' of undefined

Post by pofs »

JS is case-sensitive, so "Devices" should be lowercase.
Post Reply