Network Configuration
Configuring device network settings (IP / mask / gateway).
ti_network_config
Configure device network parameters.
- client: Client handle.
- ip: IPv4 address (e.g.
"192.168.1.100"). Pass NULL or an empty string to skip. - ip_mask: Subnet mask (e.g.
"255.255.255.0"). Pass NULL or an empty string to skip. - gateway: Default gateway (e.g.
"192.168.1.1"). Pass NULL or an empty string to skip. - Returns:
TI_OK— configuration successful - Returns:
TI_ERR_NOT_CONNECTED— not connected - Returns:
TI_ERR_SERVER— the server returned a configuration error - Returns:
TI_ERR_INVALID_ARG— client is NULL
Note: At least one of the three parameters should be non-empty. If all are empty,
TI_ERR_INVALID_ARGis returned.