Structure of the application

The application follows a pretty standard React Hook approach.


The following props are provided:

  • readPoint: Information on the Read Point: it's name, id, etc.
  • events: Real-time streaming events can be subscribed to using this object, for example actions.
  • apiFunctions: API functions to get data from Harmony and store data in Harmony. E.g. retrieve Master Data and store a Document.
  • api: Full Harmony API object
  • log: Function to log information that can be of help debugging the application.
import React from 'react'

export default function Application({ readPoint, events, apiFunctions, api, log }) {  
  log('Loading the application for readPoint', readPoint)

  events.onAction = async (action) => {
    log('Received action', action)

  return (
      Page contents...

Did this page help you?