node-red-contrib-onesait-platform

1.0.6 • Public • Published

onesait-platform Node-RED Client

onesait-platform

Copyright notice

© 2013-18 Minsait

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

API documentation

Before using the SSAP API for the first time, we strongly recommend that you learn the main concepts of the Sofia2 platform. They have been included in the Sofia2 developer documentation, which can be downloaded from http://sofia2.com/desarrollador_en.html.

The Api source code comes with a test suite where you can see an usage example of every possible query and format

Repository contents

This repository contains the following nodes to interact with onesait-platform from Node-RED:

  • onesait-platform-connection-config: Configuration nodes are scoped globally by default, this means the state will be shared between flows. This node represent a shared connection to a remote system. In that instance, the config node is responsible for creating the connection (MQTT) and making it available to the nodes that use the config node. REST interface is also a possibility to connect to the platform. The following parameters are required to define the connection:

    • Protocol: MQTT or REST. For this connection is necessary to indicate the IP and Port number of the Endpoint. Our public available CloudLab instance would have this configuration:
    REST: https://cloudlab.onesaitplatform.online
    MQTT: ping cloudlab.onesaitplatform.online and obtain IP. Port is 1883 as defined at IANA as MQTT over TCP
    
  • onesait-platform-delete: This node deletes data from an ontology according to a query, or by RTDB ID. The following parameters are required:

  • onesait-platform-insert: This node inserts data in an ontology. The following parameters are required:

  • onesait-platform-leave: This node close the actual session with the platform.

  • onesait-platform-query: This node execute a query on an ontology. The following parameters are required:

  • onesait-platform-update: This node updates data in an ontology. The following parameters are required:

  • onesait-platform-subscribe: This node subscribes to any interaction with the selected ontology. The following parameters are required:

Example Flow

Contact information

If you need support from us, please feel free to contact us at support@onesaitplatform.com.

And if you want to contribute, send us a pull request.

Package Sidebar

Install

npm i node-red-contrib-onesait-platform

Weekly Downloads

0

Version

1.0.6

License

none

Unpacked Size

227 kB

Total Files

58

Last publish

Collaborators

  • onesait-platform