Class ReadRequestController
- java.lang.Object
-
- li.pitschmann.knx.core.plugin.api.v1.controllers.AbstractController
-
- li.pitschmann.knx.core.plugin.api.v1.controllers.ReadRequestController
-
public final class ReadRequestController extends AbstractController
Controller for read requests
-
-
Constructor Summary
Constructors Constructor Description ReadRequestController(li.pitschmann.knx.core.communication.KnxClient knxClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadRequest(io.javalin.http.Context ctx, ReadRequest readRequest)Endpoint for read request to be forwarded to KNX Net/IP device-
Methods inherited from class li.pitschmann.knx.core.plugin.api.v1.controllers.AbstractController
getKnxClient, limitAndGetAsList
-
-
-
-
Method Detail
-
readRequest
public void readRequest(io.javalin.http.Context ctx, ReadRequest readRequest)Endpoint for read request to be forwarded to KNX Net/IP deviceAs soon we get an acknowledge frame from KNX Net/IP device, we will wait for a read request frame up to 3 seconds. If successful, the API will return the actual value with details like data point type. Otherwise, we simply return a JSON response with error state.
- Parameters:
ctx- the Javalin contextreadRequest- the read request from HTTP client
-
-