32. Reading RTC
Command
Description
METGetRTC(h,m,s,d,M,y,wd)
Set device internal RTC date/time
- h = hour (must be in 24h format only) – 0-23
- m = minute – 0-59
- s = second – 0-59
- M = month – 1-12
- y = year - 00-99
- wd = week day – 1-7 (1 for Sunday, 2 for Monday, etc.)
Device response
{"DeviceResponse":"Acknowledge","MessageID":"101"} or
{"DeviceResponse":"Negative Acknowledge","MessageID":"102"}
C. Unsolicited messages
1. Vend request
This message is send by the device, every time the customer is selecting a product and
there is a corresponding credit that covers the product’s price.
Message
{"VMCMessage": "VendRequest",
"ProductID": 7,
"ProductPrice": 130,
"MessageID": 103}
Description
This message contains informations about the last selected product on the vending machine’s keyboard.
- “ProductID” is the number of the latest product number selected by the customer (key number/selection number);
- “ProductPrice” is the price of the latest product selected by the customer;
- “MessageID” is the message ID number, always 103 for this message
2. Vend result
This message is send by the device, every time the VMC is finishing a transaction (product
dispensed or product failed to dispense).
Message
{"VMCMessage": "VendResult",
"ResultCode": “VendSuccess”,
"MessageID": 104}
Description
This message contains informations about the result of the last transaction.
- “ResultCode” is the human readable transaction result and can be “VendSuccess” or “VendFailed”
- “MessageID” is the message ID number, and it can be 104 for “VendSuccess” and 105 for “VendFailed”
3. Bill accepted
This message is send by the device, every time a bill is inserted into the bill validator and
stacked.
Message
{DeviceMessage": "BillAccepted","BillAcceptedValue": 500}
Description
“BillAcceptedValue” is the value of the last accepted bill (in this example, bill of EUR5.00).
© - 2018 – AUTOMATROM SRL –