PROFINET Device4.2.0
 
Loading...
Searching...
No Matches

◆ PN_API_IOD_openDevice()

uint32_t PN_API_IOD_openDevice ( PN_API_IOD_Handle_t *const  pnHandle,
uint16_t  vendorId,
uint16_t  deviceId,
PN_API_IOD_DevAnnotation_t devAnnotation,
PN_API_IOD_SnmpLldpParams_t iodSnmpParam 
)

Creates an IO device instance during startup procedure.

With every call of this function, an IO device instance is created.

Warning
Do not call this function! It is meant to be called by the user application when the multi-device support is implemented in the future. For now, it's functionality is covered by PN_API_IOD_startup().
Parameters
[in]pnHandleProfinet API Handle.
[in]vendorIdDevice Vendor ID.
[in]deviceIdDevice ID.
[in]devAnnotationDevice Annotation.
[in]iodSnmpParamSNMP parameters.
Returns
result of the operation as uint32_t.
Return values
PN_API_OKSuccess.
PN_API_NOT_OKSomething went wrong.
PN_API_ERR_PARAMInvalid parameter.
Example
#include "pn_api_iod_device.h"
//Pre-requisites for this function call are not yet available, therefore
//it can not be called...