Appendix A – TLV Data Format
{
"PINOutput": {"PINData":
"FFFF9876543210E0003A,006B30D36D752D4D,0"},
"AdditionalOutputData": null
}
4.11 RequestSendCommand
Sends a command to the device and returns the raw response from the device.
Using Method POST:
api/mtppscrahost/RquestSendCommand
{
"DeviceID": "",
"WaitTime": ,
"Data": "",
"RequestType": "",
"WaitForReport": "",
"CloseDevice": ,
"EndSession": ,
"EndSessionDisplayMessage":
}
Parameter
(Type)
DeviceID
(String)
WaitTime
(Integer)
Data
(String)
RequestType
(Enum)
WaitForReport
(String)
CloseDevice
(Boolean)
SDK - MagneFlex Powder, Middleware| PIN PEDs | Programmer's Manual ( MagneFlex Powder V2 API )
Page 66
URI of the device. See DeviceID URI for details.
Time in seconds the device will wait for the action to be completed.
(1 - 255)
Hex string for command. Reference device manual for details.
"SET" for commands where the ACK status is to be returned.
"GET" for commands where the data is to be returned.
The report number to wait for before returning the response.
Example:
Command 09 (Get Config) will respond with an ACK (01) or with data
in Get Mode (30).
WaitForReport = "01" will return the response for ACK report (01).
WaitForReport = "09" will return the data report (09).
See the device Programmer's Manual (Commands) for report numbers
corresponding to a command request.
Close the connection to the device after the request is processed.
false = Do not close the device. (default)
true = Close the device.
Description
Need help?
Do you have a question about the SDK MagneFlex Powder and is the answer not in the manual?