callback_dhcp_ok()
This section is currently being reworked. We apologize for the inconvenience. If you need immediate assistance, please contact Tibbo Support.
| 
									 Description:  | 
								
									 Callback procedure, informs of the successful procurement of configuration parameters from the DHCP server. Procedure body has to be created elsewhere in the project (externally with respect to the library).  | 
							
| 
									 Syntax:  | 
								
									 sub callback_dhcp_ok(renew as no_yes, interface as pl_sock_interfaces, byref dhcp_obtained_ip as string, byref dhcp_obtained_gateway as string, byref dhcp_obtained_netmask as string, dhcp_obtained_lease_time as dword)  | 
							
| 
									 Returns:  | 
								
									 ---  | 
							
| 
									 See Also:  | 
								
| 
									 Parameter  | 
								
									 Description  | 
							
| 
									 renew  | 
								
									 0- NO: this is an initial configuration of the IP, etc. 1- YES: this is a lease renewal (watch out for IP changes!).  | 
							
| 
									 interface  | 
								
									 Network interface on which the DHCP configuration has completed successfully: 1- PL_SOCK_INTERFACE_NET: Ethernet (net.) interface. 2- PL_SOCK_INTERFACE_WLN: Wi-Fi (wln.) interface.  | 
							
| 
									 dhcp_obtained_ip  | 
								
									 Obtained IP address in the human-readable form, i.e. "192.168.1.40".  | 
							
| 
									 dhcp_obtained_gateway  | 
								
									 Obtained gateway IP address in the human-readable form, i.e. "192.168.1.1".  | 
							
| 
									 dhcp_obtained_netmask  | 
								
									 Obtained netmask in the human-readable form, i.e. "255.255.255.0".  | 
							
| 
									 dhcp_obtained_lease_time  | 
								
									 Obtained lease time expressed as the number of seconds.  |