I'm new to this technology, can someone help me find out about some doubts?
Q-1. What is the size of the CoAP packet?
(I know there is a 4-byte fixed header, but what is the maximum size, including the header, parameter, and payload?)
Q-2. Is there a keep alive concept like MQTT?
(It works on UDP, how long does it keep the connection open, is there any default time or does it stay open every time we send a packet?)
Q-3. Can we use CoAP with TCP?
(The main problem with this CoAP is that it works on UDP, is there any concept, for example, QQS MQTT? Let's say the sensor publishes some data every second if the subscriber goes offline, is there a guarantee in CoAP that the subscriber will receive everything data, when did he come online?)
Q-4. What is the duration of the connection?
(CoAP supports a publishing / subscribing architecture, maybe you need a connection to be open all the time, is it possible with CoAP whether it is UDP based.)
Q-5. How does he discover resources?
(I have one gateway and 5 sensors, how will these sensors connect to the gateway? Will the gateway find these sensors? Or will the sensors find the gateway?)
Q-5. How does a sensor register with a gateway?
Please help me, I really need an answer. I am all new to such things and offer me something to implement.
Thanks.
Ankit source share