coap://localhost:4589/temperature/temp1 में 4589 क्या है?
In coap://localhost:4589/temperature/temp1, what is 4589?
A
port number
B
device ID
C
protocol version
D
sensor value
Explanation
-
URL में
localhost:4589का मतलब है कि क्लाइंट "localhost" (यानि local machine) पर port 4589 से कनेक्ट करेगा। -
CoAP (Constrained Application Protocol) में, port number यह निर्धारित करता है कि communication किस specific service या process से की जाएगी।
Structure of CoAP URL:
coap://<host>:<port>/<resource>
🔹 coap://localhost:4589/temperature/temp1
🔸 यहाँ 4589 = Port Number है
👉 So, 4589 is the port number used for communication.
Correct Answer: A) port number