Looking to integrate OpenDof with my Node.Js program

0
0

Hi All,

Looking to integrate OpenDof with my Node.Js program. Can some one suggest me the URL for the path of library to download to handle this integration.

I am curious to understand how does Cloud controls the on-prem iOT gateway when they are connected on the Cellular interface.
Is it thru publish/subscribe model?

Cheers
Kamal

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on April 20, 2017 11:51 am
57 views
0
Private answer

Sorry for answering so late, we had some transition changes, and some things fell through the crack. To answer your questions though, we currently don’t have a JavaScript library and don’t have any plans in creating one for OpenDOF in the future, as of yet. In order to integrate OpenDOF with your Node.js application, if you feel comfortable enough, you can create a Java client (REST) library that wraps the OpenDOF libraries’ responses in order to communicate with your Node.js application. I would recommend downloading the latest Java IoT libraries here at these link(s) to get started:

https://asset.opendof.org/artifact/org.opendof.core-java/dof-oal/7.0.5/dists/core-java-dof-oal-7.0.5.noarch.tar.gz
https://asset.opendof.org/artifact/org.opendof.core-java/dof-inet/7.0.2/dists/core-java-dof-inet-7.0.2.noarch.tar.gz
https://asset.opendof.org/artifact/org.opendof.core-java/dof-connection-reconnecting-listener/2.0.1/dists/core-java-dof-connection-reconnecting-listener-2.0.1.noarch.tar.gz
https://asset.opendof.org/artifact/org.opendof.core-java/dof-slf4j-log-listener/2.0.1/dists/core-java-dof-slf4j-log-listener-2.0.1.noarch.tar.gz

For your second question about whether OpenDOF uses a publish/subscribe model, the libraries actually do both, regardless of the medium for connectivity (Wi-Fi, Cellular, etc.). For example, SET, Invoke operations push/publish to the cloud whereas DOFSubscriptions and DOFRegistrations subscribe to a device that is providing properties or potential events. So say for a light, the turning on/off of the light would be a push, and then you could have the light send off an event if it’s power usage reached a certain limit that another managing device/person would be listening to. (subscribe)

Marked as spam
Posted by (Questions: 0, Answers: 3)
Answered on June 6, 2017 1:45 pm