3 - MagneFlex Powder Resources
SDK - MagneFlex Powder, MIddleware,| PIN PEDs | Programmer’s Manual (MagneFlex API)
Page 28
Parameter
Description
DeviceID
URI of the device.
For USB devices, Use an empty string to open the first device found.
Otherwise use:
USB://DEVICESERIALNUMBER
Example,
USB://99261829170E0810
For Ethernet devices, use the form:
IP://IPAddress:PORT
Example,
IP://10.57.10.180:26
For 802.11 Wireless devices, use in the form:
TLS12://TLSDEVICESERIALNUMBER
TLS12TRUST://TLSDEVICESERIALNUMBER
Example,
TLS12://TLS99261829170E0810
TLS12TRUST://TLS99261829170E0810
For BLE devices, use the form:
BLEEMV://DEVICENAME
Example,
BLEEMV://DPG123456789A
DEVICENAME is listed in the operating system Bluetooth settings.
WaitTime
Time in seconds the device will wait for the action to be completed.
(1 - 255)
Data
Hex string for command. Reference device manual for details.
RequestType
“SET”
for commands where the ACK status is to be returned.
“GET”
for commands where the data is to be returned.
WaitForReport
The report number to wait for before returning the response.
Example:
Command 30 00 (Set KSN) will respond with an ACK (01) or with data in
Get Mode (30).
WaitForReport = “01” will return the response for ACK report (01).
WaitForReport = “30” will return the data report (30).
Reference device manual for report numbers corresponding to a command
request.
CloseDevice
Flag which determines whether the connection to the device will be closed
after the request is processed. Default value is “false”.
“false” = Do no close the device.
“true” = Close device.