Skip to main content

server_send_response

Function server_send_response 

Source
pub fn server_send_response(
    env: Env,
    server: JObject,
    device: JObject,
    request_id: i32,
    status: i32,
    offset: i32,
    value: &[u8],
) -> Result<bool, Error>
Expand description

server.sendResponse(device, requestId, status, offset, value).

Every request that asked for a response must get exactly one, or the central stalls until the ATT timeout.