UDPMessaging

- `handlePacket(CoapPacket)` now calls `yankRequest()` with the received and decoded `CoapPacket`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-25 20:05:20 +02:00
parent 8dad7795ad
commit 1bc4664e33

View File

@ -199,7 +199,7 @@ public class UDPMessaging : CoapMessagingLayer
*/ */
private void handlePacket(CoapPacket packet) private void handlePacket(CoapPacket packet)
{ {
CoapRequest request = getClient().yankRequest(packet.getToken()); CoapRequest request = getClient().yankRequest(packet);
if(request) if(request)
{ {
writeln("Matched response '"~packet.toString()~"' to request '"~request.toString()~"'"); writeln("Matched response '"~packet.toString()~"' to request '"~request.toString()~"'");