Building Arduino Projects for the Internet of Things
CHAPTER 2 ■ INTERNET CONNECTIVITY Listing 2-5. Code for Standard Arduino Functions void setup() { // Initialize serial port Seri ...
CHAPTER 2 ■ INTERNET CONNECTIVITY Arduino Uno Wireless Connectivity (WiFi) In this section, you are going to attach a Wireless s ...
CHAPTER 2 ■ INTERNET CONNECTIVITY Once the wireless shield has been attached to Arduino, it should look similar to Figure 2-5. ...
CHAPTER 2 ■ INTERNET CONNECTIVITY Listing 2-6. External Libraries include <SPI.h> include <WiFi.h> Internet Connecti ...
CHAPTER 2 ■ INTERNET CONNECTIVITY // Connection successful Serial.print("[INFO] Connection Successful"); Serial.print(""); print ...
CHAPTER 2 ■ INTERNET CONNECTIVITY // Print WiFi Shield's IP address IPAddress ip = WiFi.localIP(); Serial.print("[INFO] IP Addre ...
CHAPTER 2 ■ INTERNET CONNECTIVITY Final Product To test the application, verify and upload the code to Arduino as discussed in C ...
CHAPTER 2 ■ INTERNET CONNECTIVITY Software Required In order to write the Internet connectivity code you will need following sof ...
CHAPTER 2 ■ INTERNET CONNECTIVITY 3. Once it’s connected, open a web browser on your computer and enter http://arduino.local (if ...
CHAPTER 2 ■ INTERNET CONNECTIVITY 29 5. Upon successful login you will be redirected to the configuration page of your Arduino Y ...
CHAPTER 2 ■ INTERNET CONNECTIVITY Arduino Yún will restart with updated settings, as shown in Figure 2-13. Figure 2-12. Ardui ...
CHAPTER 2 ■ INTERNET CONNECTIVITY 8. As shown in Figure 2-14 , during restart Arduino Yún will display a message for you to con ...
CHAPTER 2 ■ INTERNET CONNECTIVITY As shown in Figure 2-16 , from Tools ➤ Port, select the port that says Arduino Yún. Figure ...
CHAPTER 2 ■ INTERNET CONNECTIVITY Internet Connectivity (Wireless) The second section of the code, which is provided in Listing ...
CHAPTER 2 ■ INTERNET CONNECTIVITY // Contact the Linux processor Bridge.begin(); // Connect Arduino to Internet printConnectionI ...
© Adeel Javed 2016 35 A. Javed, Building Arduino Projects for the Internet of Things, DOI 10.1007/978-1-4842-1940-9_3 CHAPTER 3 ...
CHAPTER 3 ■ COMMUNICATION PROTOCOLS ■ Note For hardware and software requirements and circuit instructions, refer to the “Arduin ...
CHAPTER 3 ■ COMMUNICATION PROTOCOLS Data Publish The third section of the code defines variables, constants, and functions that ...
CHAPTER 3 ■ COMMUNICATION PROTOCOLS else { Serial.println("[ERROR] Connection Failed"); } Serial.println("---------------------- ...
CHAPTER 3 ■ COMMUNICATION PROTOCOLS else { // Connection to server:port failed Serial.println("[ERROR] Connection Failed"); } Se ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf