CoapClient

- Made the `rollingMid` a `ushort` and fixed the `newMid()` method to return that
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-25 20:00:54 +02:00
parent 23260860f5
commit 5b67894b32

View File

@ -48,7 +48,7 @@ public class CoapClient
/** /**
* Rolling Message ID * Rolling Message ID
*/ */
private ulong rollingMid; private ushort rollingMid;
private Mutex rollingLock; private Mutex rollingLock;
/** /**
@ -74,9 +74,9 @@ public class CoapClient
init(); init();
} }
package ulong newMid() package ushort newMid()
{ {
ulong newValue; ushort newValue;
// Lock rolling counter // Lock rolling counter
this.rollingLock.lock(); this.rollingLock.lock();