■ CONTENTS
x
Code (Android) ....................................................................................... 83
Project Setup .......................................................................................................... 84
Screen Layout ......................................................................................................... 89
Screen Logic ........................................................................................................... 94
MQTT Client ............................................................................................................ 96
The Final Product ................................................................................ 106
Summary ............................................................................................. 110
■Chapter 6: IoT Patterns: Remote Control .................................... 111
Learning Objectives ............................................................................. 112
Hardware Required ............................................................................. 112
Software Required ............................................................................... 113
Circuit .................................................................................................. 113
Code (Android) ..................................................................................... 115
Project Setup ........................................................................................................ 115
Screen Layout ....................................................................................................... 121
Screen Logic ......................................................................................................... 125
MQTT Client .......................................................................................................... 126
Code (Arduino) ..................................................................................... 132
External Libraries.................................................................................................. 133
Internet Connectivity (Wireless) ............................................................................ 133
Data Subscribe ..................................................................................................... 133
Control Lights ....................................................................................................... 134
Standard Functions .............................................................................................. 134
The Final Product ................................................................................ 135
Summary ............................................................................................. 138
Précédent

- 11/299

Suivant