Getting started
Last updated
Was this helpful?
Last updated
Was this helpful?
The following tutorial is a hello world equivalent of using tools provided by Thy Street.
For keeping it simple, the setup that we will be using is following:
Hardware: ESP32 devkit v1 module.
Software: Arduino using platform.io
MQTT: Any MQTT server available public
After a simple google search, we found HiveMQ provides a free MQTT broker in their basic plan.Set up your details and get your MQTT credentials. We will be using the following details for the rest of this tutorial:
Username: USER_ID
Password: DEVICE_PASSWORD
Hostname: example.hivemq.cloud
Login into the dashboard.
Enable payment (it takes up to 48 business hours to create your account in the payment gateway.)
Create a tariff card with below details:
Currency: INR
Add an entry in the tariff card with the following details:
Name: blink
Title: Fresh LED blinks
Minimum Value: 0
Maximum Value: 10
Increment: 1
Price: 10
Tax1 rate in percentage 8
Create a custom adapter to convert our HTTP webhook data to MQTT Arduino data, use the MQTT credentials created above.
Get the API credentials from your account page.
Add Thy Street client SDK in your platform io project.
As a last step, make the device public. (This is a paid action and will ask for a subscription).
Upload the code on your esp32 and start the device. Navigate to the device's page, select 3 led blinks, click on pay. Once you enter the code and make the payment, the onboard led should blink three times.
Download and print the device's QR code, install your device and enjoy your sales on the payment gateway's dashboard.