nabto_device_virtual_coap_request_get_response_status_code()

DESCRIPTION

Get response status. encoded as e.g. 404, 200, 203, 500.

DECLARATION

    NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
        nabto_device_virtual_coap_request_get_response_status_code(NabtoDeviceVirtualCoapRequest* coap, uint16_t* statusCode)

PARAMETERS

coap:
[in] the coap request object.
statusCode:
[out] the statusCode for the request

RETURNS

  • NABTO_DEVICE_EC_OK: if the status code exists.
  • NABTO_DEVICE_EC_INVALID_STATE: if there’s no response yet.