You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a device that has a 2 network interface (ppp0 and eth0). I want the Azure IOT agent to connect to the DPS or IOT hub using a specific network interface. Is it supported in the Azure-iot-sdk-c, that the client code can specify which network interface the agent should bind into?
br
Amitabh
The text was updated successfully, but these errors were encountered:
That can be done for the Azure IoT Hub connection on Linux only.
You would use like this:
char*mac_address="02-15-86-1D-03-AD"; // change this to your network interface mac address.IoTHubDeviceClient_SetOption(iothub_deviceclient_handle, OPTION_NET_INT_MAC_ADDRESS, mac_address);
You can check this function we have to retrieve the mac addresses, if you need that to be done dynamically.
We haven't verified that for DPS recently, but it should work as well (using the same option name). The APi to use would be:
char*mac_address="02-15-86-1D-03-AD"; // change this to your network interface mac address.Prov_Device_LL_SetOption(prov_device_ll_handle, OPTION_NET_INT_MAC_ADDRESS, mac_address);
Hi,
I have a device that has a 2 network interface (ppp0 and eth0). I want the Azure IOT agent to connect to the DPS or IOT hub using a specific network interface. Is it supported in the Azure-iot-sdk-c, that the client code can specify which network interface the agent should bind into?
br
Amitabh
The text was updated successfully, but these errors were encountered: