CoapMessaging

- When a matched packet is found in `handlePacket(CoapPacket)` then print the elapsed time since the original request (thus far)
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-22 16:27:11 +02:00
parent 07c1cb90cc
commit f25066900a

View File

@ -98,6 +98,7 @@ class CoapMessagingLayer : Thread
if(request)
{
writeln("Matched response '"~packet.toString()~"' to request '"~request.toString()~"'");
writeln("Elapsed time: ", request.getElapsedTime());
// Fulfill the request with the received data and wake up sleepers
request.future.receiveWake(packet);