GoldenGateBindings / com.fitbit.goldengate.bindings.coap / CoapEndpoint / responseFor

responseFor

fun responseFor(request: OutgoingRequest): Single<IncomingResponse>

Overrides Endpoint.responseFor

Call this to send a request and get a response (i.e. be a client).

Parameters

request - The request that should be sent to the CoAP server. Use OutgoingRequestBuilder to construct requests.

Return
A Single that will emit either an IncomingResponse returned from the CoAP server or an error