Forum

Einloggen | Registrieren | RSS  

Tradfri von IKEA (Netzwerktechnik)

verfasst von bastelix(R), 28.11.2018, 23:49 Uhr

» Hallo Bastelix,
» ehrlich gesagt kann ich mit der CoAP nichts anfangen
Hallo hansi,

wenn ich das richtig überrissen habe ist CoAP das Backend für deinen Tradfri node. Sieht man im (von mir ;) ) grün umrahmten Bereich deines Screenshots:



Auf der verlinkten Seite steht im oberen drittel First steps und da wird beschrieben wie man die Identity erstellt/einrichtet
Hier der Abschnitt den ich meine von https://github.com/morzzz007/node-tradfri
» First steps
»
» Obtain the TRÅDFRI Gateway's IP address and Security Code (found at the bottom of the gateway)
» Generate a DTLS IDENTITY and a PRE_SHARED_KEY
»
» How to generate a DTLS Identity
»
» The identities will expire after 6 weeks without any usage. Each time you use it the expiration will be moved in time. That means that you should not need to think about renewals of the identities as long as it is used continuously.
»
» Use the included script
»
» node node_modules/node-tradfri/dtls.js HUB_IP_ADDRESS SECURITY_CODE (COAP_CLIENT_PATH [optional])
»
» Example: node node_modules/node-tradfri/dtls.js 192.168.0.33 ABCDEFGHIJKLM
» Manually
»
» coap-client -m post -u "Client_identity" -k "SECURITY_CODE" -e '{"9090":"IDENTITY"}' "coaps://IP_ADDRESS:5684/15011/9063"



Gesamter Thread:

Tradfri von IKEA - hansi, 22.11.2018, 14:35
Tradfri von IKEA - Gastl, 22.11.2018, 16:36
Tradfri von IKEA - hansi, 22.11.2018, 17:01
Tradfri von IKEA - hansi, 22.11.2018, 18:17
Tradfri von IKEA - Gastl, 22.11.2018, 18:40
Tradfri von IKEA - hansi, 22.11.2018, 21:56
Tradfri von IKEA - Gastl, 22.11.2018, 22:24
Tradfri von IKEA - hansi, 22.11.2018, 22:40
Tradfri von IKEA - bastelix(R), 22.11.2018, 22:56
Tradfri von IKEA - hansi, 22.11.2018, 23:04
Tradfri von IKEA - bastelix(R), 24.11.2018, 01:11
Tradfri von IKEA - hansi, 26.11.2018, 21:55
Tradfri von IKEA - bastelix(R), 28.11.2018, 23:49
Tradfri von IKEA - hansi, 29.11.2018, 21:37
Tradfri von IKEA - bastelix(R), 29.11.2018, 23:11