12. MDBSetCurrentCredit
GUI command
Command
Parameters/Comments
MDBSetCurrentCredit(“NNNN”)
Set the value of the MDB module curernt credit.
- 32 bit positive value
This value must be set after each succesful vend and before
issuing the “MDBCashlessRevalue” command. This is the value
that the RASPIVEND board will try to use for revalue.
The value is multiplied by the 100 scaling factor (for example, for
1EUR you have to set this value to 100).
This command will modify the value of CurrentCreditCash. You
can read this variable by issuing the MDBPoll command.
RASPIVEND daemon answer
Answer
Parameters/Comments
{"MDBSetCurrentCredit":"NNNN"}
This command will return the value you have sent. For safety
reasons (eliminate the communication errors), you must commit
this action with MDBSetCurrentCreditOK, after you verify that the
returned value is the same with the sent value.
13. MDBSetCurrentCreditOK
GUI command
Command
Parameters/Comments
MDBSetCurrentCreditOK
[none]
RASPIVEND daemon answer
Answer
Parameters/Comments
{"MDBSetCurrentCreditOK":"success"}
or
{"MDBSetCurrentCreditOK":"failed"}
This command will commit the change of the CurrentCreditCash
variable on the RASPIVEND board.
© 2016 – AUTOMATROM SRL – www.vendingtools.ro