Compare commits

...

3 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 5600836d2a Merge branch 'master' into feature/options_full 2023-10-15 17:04:55 +02:00
Tristan B. Velloza Kildaire c16b8a4b06 Client
- `newMid2()` now uses the updated `findNextFree(..., ...)` from niknaks
2023-10-15 17:03:45 +02:00
Tristan B. Velloza Kildaire ae0235388a Dub
- Upgraded to new version of `niknaks` `0.4.3`
2023-10-15 17:02:26 +02:00
2 changed files with 8 additions and 3 deletions

View File

@ -4,10 +4,10 @@
],
"copyright": "Copyright © 2023, Tristan B. Velloza Kildaire",
"dependencies": {
"niknaks": ">=0.1.0"
"niknaks": ">=0.4.3"
},
"description": "CoAP library for D",
"license": "LGPL v3.0",
"name": "doap",
"targetType": "library"
}
}

View File

@ -132,7 +132,12 @@ public class CoapClient
// If none was available for re-use then find next available
// ... free and use that (also don't forget to register it)
ushort newMid = findNextFree(inUse);
ushort newMid;
bool gotAvailable = findNextFree(inUse, newMid);
// FIXME: Add a thing which does something
// ... if `gotAvailable` is false
this.mids[newMid] = StopWatch(AutoStart.yes);
return newMid;