■ CONTENTS
xiii
■Chapter 10: IoT Patterns: Machine to Human ............................. 213
Learning Objectives ............................................................................. 214
Hardware Required ............................................................................. 214
Software Required ............................................................................... 215
Circuit .................................................................................................. 215
Code (Arduino) ..................................................................................... 217
External Libraries.................................................................................................. 217
Internet Connectivity (Wireless) ............................................................................ 217
Read Sensor Data ................................................................................................. 217
Data Publish ......................................................................................................... 219
Standard Functions .............................................................................................. 220
Effektif Workfl ow ................................................................................. 221
Process Creation ................................................................................................... 221
Process Confi gurations ......................................................................................... 222
Node-RED Flow ................................................................................... 230
The Final Product ................................................................................ 236
Summary ............................................................................................. 239
■Chapter 11: IoT Patterns: Machine to Machine .......................... 241
Learning Objectives ............................................................................. 242
Light Sensor Device ............................................................................ 242
Code (Arduino) ..................................................................................................... 242
Lighting Control Device ....................................................................... 246
Code (Arduino) ...................................................................................................... 246
The Final Product ................................................................................ 249
Summary ............................................................................................. 251
xiii
■Chapter 10: IoT Patterns: Machine to Human ............................. 213
Learning Objectives ............................................................................. 214
Hardware Required ............................................................................. 214
Software Required ............................................................................... 215
Circuit .................................................................................................. 215
Code (Arduino) ..................................................................................... 217
External Libraries.................................................................................................. 217
Internet Connectivity (Wireless) ............................................................................ 217
Read Sensor Data ................................................................................................. 217
Data Publish ......................................................................................................... 219
Standard Functions .............................................................................................. 220
Effektif Workfl ow ................................................................................. 221
Process Creation ................................................................................................... 221
Process Confi gurations ......................................................................................... 222
Node-RED Flow ................................................................................... 230
The Final Product ................................................................................ 236
Summary ............................................................................................. 239
■Chapter 11: IoT Patterns: Machine to Machine .......................... 241
Learning Objectives ............................................................................. 242
Light Sensor Device ............................................................................ 242
Code (Arduino) ..................................................................................................... 242
Lighting Control Device ....................................................................... 246
Code (Arduino) ...................................................................................................... 246
The Final Product ................................................................................ 249
Summary ............................................................................................. 251
