-
Notifications
You must be signed in to change notification settings - Fork 44
Errors running EnviroPhat example #165
Comments
Here's what I get in the client.get.js window when I run the server/client.get.js example:
|
Instructions still don't work correctly, but look better :) (See Issue intel#165)
|
Instructions still don't work correctly, but look better :) (See Issue intel#165) Closes intelgh-166
@dbkinder could you please replace server.envirophat.ocf.js with this version and try again? |
Nope:
Thinking the
|
@dbkinder thanks for trying it out! I fixed the file now, and I added it to the linter script so I can avoid such syntax errors. Could you please grab the file again, and give it another whirl? |
That worked better. No syntax errors :)
And then the client in another terminal window:
I pressed 0, 1, 2, 3, and 4 and got the same response and no obvious changes to the EnviroPhat LEDs at any time. There was no output in the server window other than what's shown above. So, the sample doesn't seem to be doing what's advertised. |
The requests are being denied. I'm guessing you're running version 1.3.1 of iotivity-node. Then you need to set up access control files before you can run the sample. https://github.com/otcshare/iotivity-node/blob/master/js/README.md has instructions for creating the necessary files. |
I followed the instructions Rami provided here: https://github.com/otcshare/iotivity-node/tree/master/js/envirophat (no mention of the instructions you referenced). I see the first step of your instructions say, "In addition to iotivity-node, build iotivity with SECURED=1 and RD_MODE=all. Let the root of the iotivity repository be $iotivityRoot." but there are no command line instructions showing how to do that :( |
I modified the first instruction to point to https://wiki.iotivity.org/build. I also added a step to the envirophat instructions referring to the COAPS instructions. Please have a look at https://github.com/gabrielschulhof/iotivity-node/blob/gh-165/js/README.md and https://github.com/gabrielschulhof/iotivity-node/blob/gh-165/js/envirophat/README.md |
Following instructions at https://github.com/otcshare/iotivity-node/blob/master/js/envirophat/README.md went along OK through the command-line testing of the EnviroPhat LEDs. The next step failed:
because the instructions put us in the wrong directory (should be down one more in the
~/workspace/iotivity-node/js/envirophat
directory. But even if we're in the right directory, starting up the server fails:Not sure what to do now?
The text was updated successfully, but these errors were encountered: