Complete the code to show the protocol used by CoAP.
protocol = "[1]" # CoAP uses this protocol
CoAP uses UDP as its transport protocol, which is lightweight and suitable for constrained devices.
Complete the code to specify the default port number for HTTP.
default_port = [1] # Default port for HTTP
HTTP typically uses port 80 by default for communication.
Fix the error in the code to correctly set the CoAP default port.
coap_port = [1] # Correct default port for CoAP
CoAP uses port 5683 by default, which is different from HTTP ports.
Fill both blanks to complete the sentence comparing CoAP and HTTP methods.
CoAP uses the [1] method similar to HTTP's [2] method.
Both CoAP and HTTP use the GET method to request data from a server.
Fill all three blanks to complete the CoAP message format example.
message = [1] + ' ' + [2] + ' ' + [3] # CoAP message format
CoAP messages start with a type like CON (confirmable), followed by method like GET, and a message ID such as 1.
