Learn IoT Programming Using Node-RED: Begin to Code Full Stack IoT Apps and Edge Devices with Raspberry Pi, NodeJS and Grafana by Bernardo Ronquillo Japón

Learn IoT Programming Using Node-RED: Begin to Code Full Stack IoT Apps and Edge Devices with Raspberry Pi, NodeJS and Grafana by Bernardo Ronquillo Japón

Author:Bernardo Ronquillo Japón [Japón, Bernardo Ronquillo]
Language: eng
Format: epub
Publisher: BPB Publications
Published: 2022-08-15T00:00:00+00:00


Data generation: for example, the physical sensor is not working properly; sometimes the messages are delivered every 2 seconds, and when failing, a message might be delivered 5 seconds after the previous one.

Data transmission: in the real-time layer provided by Pusher. If this service were not in a healthy state (for example, many different users overloading Pusher servers), we could see larger differences in the interval lengths, in the order of the emission rate (2 seconds).

So, it should be considered as a health indicator of our application. We will consider that the service is healthy if the interval lengths are at least one order of magnitude lower than the emission rate, i.e., 0.2 seconds.

To finish this subsection, let's recap putting together these three functionalities. Since they share the same input, the Pusher in node, we can include them in a single flow to achieve a more compact code. The result is shown in the following figure:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.