nabto_device_add_tcp_tunnel_service_metadata()

DESCRIPTION

Add a key-value pair to the metadata of a TCP tunnel service. If the given key already exists in the metadata, then its corresponding value will be overwritten.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_add_tcp_tunnel_service_metadata(NabtoDevice* device, const char* serviceId, const char* key, const char* value)

PARAMETERS

device:
[in] The device instance.
serviceId:
[in] The unique id of a service on the device.
key:
[in] The key of the key-value pair.
value:
[in] The value of the key-value pair.

RETURNS

NABTO_DEVICE_EC_OK if the key-value pair was added to the metadata of the service. NABTO_DEVICE_EC_NOT_FOUND if no service with the given id was located on the device.