CoapClient

- Added rolling counter and a lock for it
- Count starts at 0
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-25 19:41:29 +02:00
parent 1136e384f8
commit 4c788b91c3

View File

@ -45,6 +45,12 @@ public class CoapClient
*/
private Condition watcherSignal;
/**
* Rolling Message ID
*/
private ulong rollingMid;
private Mutex rollingLock;
/**
* Creates a new CoAP client to the
* provided endpoint address
@ -62,6 +68,9 @@ public class CoapClient
this.requestsLock = new Mutex();
this.watcherSignal = new Condition(this.requestsLock);
this.rollingMid = 0;
this.rollingLock = new Mutex();
init();
}