■ CONTENTS
ix
■Part 2: Prototypes ......................................................... 49
■Chapter 4: Complex Flows: Node-RED .......................................... 51
Learning Objectives ............................................................................... 53
Hardware Required ............................................................................... 53
Software Required ................................................................................. 54
Circuit .................................................................................................... 54
Node-RED Flow ..................................................................................... 56
Code (Arduino) ....................................................................................... 69
External Libraries.................................................................................................... 69
Internet Connectivity (Wireless) .............................................................................. 70
Read Sensor Data ................................................................................................... 70
Data Publish ........................................................................................................... 70
Standard Functions ................................................................................................ 72
Final Product ......................................................................................... 72
Summary ............................................................................................... 73
■Chapter 5: IoT Patterns: Realtime Clients ..................................... 75
Learning Objectives ............................................................................... 76
Hardware Required ............................................................................... 76
Software Required ................................................................................. 77
Circuit .................................................................................................... 77
Code (Arduino) ....................................................................................... 79
External Libraries.................................................................................................... 79
Internet Connectivity (Wireless) .............................................................................. 79
Read Sensor Data ................................................................................................... 79
Data Publish ........................................................................................................... 81
Standard Functions ................................................................................................ 83
www.allitebooks.com
ix
■Part 2: Prototypes ......................................................... 49
■Chapter 4: Complex Flows: Node-RED .......................................... 51
Learning Objectives ............................................................................... 53
Hardware Required ............................................................................... 53
Software Required ................................................................................. 54
Circuit .................................................................................................... 54
Node-RED Flow ..................................................................................... 56
Code (Arduino) ....................................................................................... 69
External Libraries.................................................................................................... 69
Internet Connectivity (Wireless) .............................................................................. 70
Read Sensor Data ................................................................................................... 70
Data Publish ........................................................................................................... 70
Standard Functions ................................................................................................ 72
Final Product ......................................................................................... 72
Summary ............................................................................................... 73
■Chapter 5: IoT Patterns: Realtime Clients ..................................... 75
Learning Objectives ............................................................................... 76
Hardware Required ............................................................................... 76
Software Required ................................................................................. 77
Circuit .................................................................................................... 77
Code (Arduino) ....................................................................................... 79
External Libraries.................................................................................................... 79
Internet Connectivity (Wireless) .............................................................................. 79
Read Sensor Data ................................................................................................... 79
Data Publish ........................................................................................................... 81
Standard Functions ................................................................................................ 83
www.allitebooks.com
