Building Arduino Projects for the Internet of Things

(Steven Felgate) #1

CHAPTER 4 ■ COMPLEX FLOWS: NODE-RED


Drag and drop the http request input node from the palette in the Flow tab. Your flow
should look similar to Figure  4-11.


Figure 4-11. HTTP request node


Figure 4-12. HTTP request node properties dialog box


Figure 4-10. Flow properties dialog box


Double-click the http node to open the properties dialog box, as shown in Figure  4-12.
Set the method to GET, which specifies that the HTTP request will be sent by the client
(in this case, the light sensor) using a GET method. As discussed in Chapter 3 , the structure
of the request varies based on the method you select. You saw the Arduino code for the GET
and POST methods in Chapter 3.

Free download pdf