IP address configuration for network devices (IPv4), used with property OB_STRUCT_DEVICE_IP_ADDR_CONFIG.
More...
#include <ObTypes.h>
|
| uint16_t | dhcp |
| | DHCP status.
|
| uint8_t | address [4] |
| | IP address (IPv4, big endian: 192.168.1.10, address[0] = 192, address[1] = 168, address[2] = 1, address[3] = 10)
|
| uint8_t | mask [4] |
| | Subnet mask (big endian)
|
| uint8_t | gateway [4] |
| | Gateway (big endian)
|
IP address configuration for network devices (IPv4), used with property OB_STRUCT_DEVICE_IP_ADDR_CONFIG.
- Note
- Device support:
- Femto Mega / Femto Mega I: only this structure is supported.
- Gemini 335Le / Gemini 435Le with older firmware: only this structure is supported.
- Gemini 335Le / Gemini 435Le with newer firmware: both this structure and OBNetIpConfigV2 are supported; it is recommended to use OBNetIpConfigV2 (property OB_STRUCT_DEVICE_IP_ADDR_CONFIG_V2) instead.
-
How to choose between OBNetIpConfig and OBNetIpConfigV2: First check whether OB_STRUCT_DEVICE_IP_ADDR_CONFIG_V2 is supported by the device. If yes, use OBNetIpConfigV2; otherwise fall back to this structure. Example:
if(v2Supported) {
} else {
}
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 1291 of file ObTypes.h.
◆ dhcp
| uint16_t OBNetIpConfig::dhcp |
DHCP status.
- Note
- 0: static IP; 1: DHCP
Definition at line 1297 of file ObTypes.h.
◆ address
| uint8_t OBNetIpConfig::address[4] |
IP address (IPv4, big endian: 192.168.1.10, address[0] = 192, address[1] = 168, address[2] = 1, address[3] = 10)
Definition at line 1302 of file ObTypes.h.
◆ mask
| uint8_t OBNetIpConfig::mask[4] |
Subnet mask (big endian)
Definition at line 1307 of file ObTypes.h.
◆ gateway
| uint8_t OBNetIpConfig::gateway[4] |
The documentation for this struct was generated from the following file: