CoapClient

- Removed `newMid()`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-26 19:18:33 +02:00
parent 4daf3daad0
commit 94b9c2d714
1 changed files with 0 additions and 21 deletions

View File

@ -77,27 +77,6 @@ public class CoapClient
init();
}
/**
* Generates a new message ID
*
* Returns: the next message id
*/
private final ushort newMid()
{
ushort newValue;
// Lock rolling counter
this.rollingLock.lock();
newValue = this.rollingMid;
this.rollingMid++;
// Unlock rolling counter
this.rollingLock.unlock();
return newValue;
}
/**
* Maximum lifetime of a message ID before
* it is considered for re-use