> For the complete documentation index, see [llms.txt](https://docs.ceruleansonar.com/c/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ceruleansonar.com/c/surveyor-240-16/application-programming-interface/set_net_info.md).

# SET\_NET\_INFO

### ID: 17

### Payload Definition

<table><thead><tr><th width="145">Data Type</th><th width="219">Name</th><th>Description</th></tr></thead><tbody><tr><td>u32</td><td>ntp_ip_address</td><td>IP address of device</td></tr><tr><td>u32</td><td>subnet_mask</td><td>Subnet mask of device IP, for routing to server</td></tr><tr><td>u32</td><td>gateway_ip</td><td>Gateway IP address for routing to server. Only necessary if NTP server is in different subnet than device and needs to be accessed through a gateway. Otherwise can be left as 0</td></tr></tbody></table>

{% hint style="info" %}
The first octet of the IP address is placed in the least significant byte of the `u32`.\
For example, the IP address `192.168.2.2` would be packed into a `u32` like this:\
`u32 ip = (192) | (168 << 8) | (2 << 16) | (2 << 24);`
{% endhint %}
