LanguidSmartass/mdb-arduino-cashless

Webserver code

harleygroupmap opened this issue · 3 comments

Hi
Thanks for our great job
But can you please share the code of webserver project?
Seems like it's simple one, but it's hard to rebuild it from arduino code..

Do start a Webserver of your Choice:
Add Subfolder to Match this URL:
http://xxx.xxx.xxx.xxx:xxx/api/Vending/
A file for each Card UID contains the Credit for each card, named like the uid without any ending
Assuming your Card has RFID ID A42F32DD the urls should look like the folloing:
http://xxx.xxx.xxx.xxx:xxx/api/Vending/A42F32DD should return 4000 as the user funds in cents
http://xxx.xxx.xxx.xxx:xxx/api/Vending/A42F32DD/100 should decrease the user funds by 100 cents

thats it - not very advanced but its a proofe of concept... for my company we advanced this stuff by *3000 and are using esp32 and a websocket connection and other fine stuff :)

One day i might be able to share my/our improved code for free :))