MDB Products
Released
MDB Developers' Playground - Code Samples and Examples
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
MDB Charge
Copy Markdown
Open in ChatGPT
Open in Claude
The MDB Charge is a simple shell script that request the amount from the customer. It can run in any OS and can be used with the Pi Hat or MDB USB (all versions)
Info
Download the scrip from here
How to run the script
python rqvend.py <price> <product_id> <timeout> <serial_port>
Example
python rqvend.py 1 2 20 /dev/ttyACM0
Arguments
price - Price of the product
product_id - Product id in the product list
timeout - Time (in seconds) that the function waits for the confirmation of the vend before issuing a timeout error
serial_port - Serial port to which the device is connected. This parameter is optional. If not specified it defaults to /dev/ttyAMA0
Wiring
Warning
Please NEVER connect MDB Cables with the machine turned on, this can damage both devices

Last updated on
Next to read:
Hello Qiba(C) 2024 Qibixx AG - contact us with any questions: info@qibixx.com
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message