Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Connectivity > age_net
string_to_ip4/1
Description
string_to_ip4/1 is an Erlang function exported by "age_net" module.
Converts an input string with IP4 address into a tuple.
References
None
Parameters
Name
Type
Input
string()
Input string with valid IP4 address.
Result
Value or Type
tuple()
Returns {A, B, C, D} octets of IP4 address.
Code Sample
> age_net:string_to_ip4("192.168.1.100").
{192,168,1,100}