-
Notifications
You must be signed in to change notification settings - Fork 9
Compile coap client
Johan Stenehall edited this page Apr 18, 2017
·
1 revision
This is the little util that's being used for the actuall communication with the gateway. I've tried this on a raspberry pi so any debian:ish should work.
apt-get install libtool
.it clone --recursive https://github.com/obgm/libcoap.git
cd libcoap
git checkout dtls
git submodule update --init --recursive
./autogen.sh
./configure --disable-documentation --disable-shared
make
sudo make install
This gives you a nice little util that you can actually control your IKEA gateway with.
A command would look something like this.
coap-client -u "Client_identity" -k your-secret-key -m get "coaps://192.168.1.123:5684/15001/65537"
This will return all information about my lamp.
coap-client -u "Client_identity" -k your-secret-key -m get "coaps://192.168.1.123:5684/15001"
Calling above following seems to give you back a list of IDs for known devices. For me that returns [65536,65537]
Where 65536
is the small remote control I have and 65537
is the lamp.
(All creeds to https://github.com/bwssytems/ha-bridge/issues/570#issuecomment-292081839 et. all in that thread)