CoapClient

- `yankRequest(ubyte[] token)` now will also remove the matched `CoapRequest` from the `outgoingRequests` queue
- Fixes #6
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-25 17:15:40 +02:00
parent ce5418a9bd
commit 95673cf21f

View File

@ -181,7 +181,9 @@ public class CoapClient
/** /**
* Given a token this will try and find an active * Given a token this will try and find an active
* request with a matching token and return it * request with a matching token and return it.
*
* This will also remove it from the requests queue.
* *
* Params: * Params:
* token = the token * token = the token
@ -200,7 +202,8 @@ public class CoapClient
{ {
foundRequest = request; foundRequest = request;
// FIXME: We should remove it here? outgoingRequests.linearRemoveElement(foundRequest);
break; break;
} }
} }