This is the code repository for Android things Projects. It contains all the supporting project files necessary to work through the book from start to finish.
With this book, you will be able to take advantage of the new Android framework APIs to securely build projects using low-level components such as sensors, resistors, capacitors, and display controllers. This book will teach you all you need to know about working with Android Things through practical projects based on home automation, robotics, IoT, and so on. We’ll teach you to make the most of the Android Things and build enticing projects such as a smart greenhouse that controls the climate and environment automatically. You’ll also create an alarm system, integrate Android Things with IoT cloud platforms, and more.
All of the code is organized into folders. Each folder starts with a number followed by the application name.
The code will look like the following:
int setStripColor(String command) {
Serial.println("Color strip function...");
struct data value = parseCommand(command);
debugData(value);
fillStrip(strip.Color(value.r,value.g,value.b),
value.wait, value.dir);
return 1;
}
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.