How To Dev - Example of Processing Logic (IoT App) Design, for each independent Flow

 

  1. Identify the activities to be performed, for example:
    1. Periodically activate the flow.
    2. Call a gateway to get data.
    3. Verify the correctness of data.
    4. Enrich the data with other information coming from Cloud data into the storage.
    5. Transform the data in the correct format.
    6. Send the data into the Broker, and thus send the data in the storage on a specific entity Instance / IoT Device.
    7. Send also a notification via email.
  2. Sketch a data flow diagram (see the figure below here [left side]).
  3. Implement the sketch on processing low using Node-RED nodes, Snap4City lib of nodes and other libraries of nodes. (see the figure below here [right side]).
  4. Deploy and test using DEBUG node in any stream you like, using also on/off to avoid deploy all time.

Figure – Single Processing Logic Independent flow: (left) design,
(right) actual implementation in Snap4City of the flow in Node-Red tool.

 

How To Dev - Example of Processing Logic (IoT App) Design, for each independent Flow | Snap4City

Error

×

Error message

  • Unable to send e-mail. Contact the site administrator if the problem persists.
  • Notice: Trying to get property of non-object in user_is_logged_in() (line 1576 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_is_logged_in() (line 1576 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in og_field_access() (line 578 of /var/www/html/drupal/sites/default/modules/og/og.module).
  • Notice: Trying to get property of non-object in user_access() (line 806 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 818 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 819 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 825 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 828 of /var/www/html/drupal/modules/user/user.module).
  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/drupal/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/drupal/includes/bootstrap.inc).
  • Error: __clone method called on non-object in og_user_access_entity() (line 2249 of /var/www/html/drupal/sites/default/modules/og/og.module).
The website encountered an unexpected error. Please try again later.