Building Arduino Projects for the Internet of Things

(Steven Felgate) #1
■ INDEX

screen logic
createNotifi cation(...) method , 95
MainActivity.java fi le , 94
updateView(...) method , 95
serial monitor window
default view , 108
deployment and
running app , 106
details , 110
device selection , 107
intrusion notifi cation , 109
log messages , 106
software requirement , 77
source code
calibrateSensor() function , 80
data publication , 81–82
external libraries , 79
Internet connectivity
(Wireless) , 79
readSensorData()
function , 79–80, 83
sections , 79
standard functions , 83

„ L


Lighting control system
circuit
diagram , 113–115
requirement , 113
code (Arduino)
control lights , 134
data requirements , 133
external libraries , 133
Internet connectivity
(Wireless) , 133
sections , 132
standard functions , 134–135
component , 111
hardware components , 112
MQTT client , 126
app permissions , 132
class adding , 129
complete code , 129–130
default code , 129
import library-resolve
dependencies , 127
libraries , 128
module option , 128
name fi eld adding , 129
onCreate() method , 131


publishToMQTT() method , 130
switch perspective , 127
objectives , 112
project creation
customization screen , 119–120
device selection screen , 117–118
folders and fi les
creation , 120–121
menu bar , 116
project confi guration , 117
Quick Start screen , 115
template selection screen , 118–119
screen layout
custom content , 123
default development , 121–122
dialog box , 125
fi nal layout , 125
ImageView element , 124
layout fi le , 122
TextView element , 124
toolbar and fl oating action
button , 123
screen logic
default code , 126
onCreate() method , 126
Serial Monitor window
default view , 137–138
deploy and run app , 136
device selection , 137
log messages , 135–136
software requirement , 113
light sensor tweet system , 52
Livestock tracking system
circuit , 197–198
code (PHP)
database connection , 200
gpstracker , 199
map , 203–205
receive and store sensor
data , 201–202
components , 195
database table (MySQL) , 199
fi nal version , 211
hardware components , 196
log messages , 210
software requirements , 197
source code , 206
data publication , 208
external libraries , 206
getGPSCoordinates()
function , 207
Free download pdf