Class ReadRequestController


  • public final class ReadRequestController
    extends AbstractController
    Controller for read requests
    • Constructor Detail

      • ReadRequestController

        public ReadRequestController​(li.pitschmann.knx.core.communication.KnxClient knxClient)
    • Method Detail

      • readRequest

        public void readRequest​(io.javalin.http.Context ctx,
                                ReadRequest readRequest)
        Endpoint for read request to be forwarded to KNX Net/IP device

        As 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 context
        readRequest - the read request from HTTP client