Setting ip address programmatically

We are exploring the concepts of using Samsung S series phone to connect to some IOT devices directly through the use of ethernet USB OTG cables.

These IOT devices does not come with wireless configurations and typically owns a static ip address. How can I configure static ip addresses on Samsung phones programmatically in order for us to communicate with these devices? We may need to switch between alternating IOT devices and want to provide seamless experience to users, without them requiring the need to change the ip address for each hardware switch.

Does the Samsung Experience OEM AOSP exposes some of the Hidden API provided, or already had some custom system services that allow developers to work on?

Any alternative approach is welcomed.

Regards,
Kah Wai

I think you should go to the Smart Things Developer site they have a support.

Hope this helps,

Ron
Samsung Developer Relations