Specify the destination network card for communication requests between the ESP SDK and an ESP cluster.
If you have configured Event Stream Processor to use a specific, non-default network card when connecting with other machines, you also need to configure the ESP SDKs to communicate with this specific card. Otherwise, communication requests between the SDK and the cluster will fail. The SDK must have at least one card configured on the same network as the card the ESP cluster is using.
The SDKs establish connections with Event Stream Processor using a uniform resource indicator (URI) in the form esp://localhost:<port>/default/RAP. To configure the SDKs to communicate with a specific network card, replace localhost in the URI with the IP address of the card the ESP cluster is using.
esp_uri_create_string(esp://192.168.0.1:19011/default/RAP)
new Uri.Builder(esp://192.168.0.1:19011/default/RAP).create()
uri.set_uri("esp://192.168.0.1:19011/default/RAP", error);