CoapRequest

- Added `getMid()`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-25 20:06:37 +02:00
parent 1bc4664e33
commit 6c20adfe11

View File

@ -75,6 +75,17 @@ package class CoapRequest
return this.requestPacket.getToken();
}
/**
* Gets the message ID from the original
* request that was made
*
* Returns: the message id
*/
public ushort getMid()
{
return this.requestPacket.getMessageId();
}
/**
* Starts the timer
*/