IP address configuration v2 for network devices (IPv4), used with property OB_STRUCT_DEVICE_IP_ADDR_CONFIG_V2.
More...
#include <ObTypes.h>
|
| uint16_t | flags |
| uint8_t | address [4] |
| | IP address (IPv4, big-endian, e.g. 192.168.1.1 -> address[0]=192)
|
| uint8_t | mask [4] |
| | Subnet mask (big-endian)
|
| uint8_t | gateway [4] |
| | Gateway (big-endian)
|
IP address configuration v2 for network devices (IPv4), used with property OB_STRUCT_DEVICE_IP_ADDR_CONFIG_V2.
- Note
- This is the recommended structure for Gemini 335Le / Gemini 435Le devices with newer firmware. It extends OBNetIpConfig by replacing the single
dhcp field with a flags bitmask that supports both DHCP mode and Persistent IP mode.
-
Device support:
- Femto Mega / Femto Mega I: NOT supported; use OBNetIpConfig instead.
- Gemini 335Le / Gemini 435Le with older firmware: NOT supported; use OBNetIpConfig instead.
- Gemini 335Le / Gemini 435Le with newer firmware: supported and recommended.
-
Before using this structure, verify support at runtime:
OB_EXPORT bool ob_device_is_property_supported(const ob_device *device, ob_property_id property_id, ob_permission_type permission, ob_error **error)
Check if a device property permission is supported.
@ OB_PERMISSION_READ_WRITE
@ OB_STRUCT_DEVICE_IP_ADDR_CONFIG_V2
Device IP address configuration v2.
Definition at line 1340 of file ObTypes.h.
◆ flags
| uint16_t OBNetIpConfigV2::flags |
IP configuration mode flags bit0: DHCP enable (1=on, 0=off) bit1: Persistent IP enable (1=on, 0=off) bit[2:15]: reserved, must be 0
Definition at line 1341 of file ObTypes.h.
◆ address
| uint8_t OBNetIpConfigV2::address[4] |
IP address (IPv4, big-endian, e.g. 192.168.1.1 -> address[0]=192)
Definition at line 1345 of file ObTypes.h.
◆ mask
| uint8_t OBNetIpConfigV2::mask[4] |
Subnet mask (big-endian)
Definition at line 1346 of file ObTypes.h.
◆ gateway
| uint8_t OBNetIpConfigV2::gateway[4] |
The documentation for this struct was generated from the following file: