Removed a bunch of print statements
by jnesselr 4 years 11 months
a3e236ba
Getting started on the update order endpoint
by jnesselr 4 years 11 months
78a72259
Added Order Cancelled function to SiteLink
by jnesselr 4 years 11 months
Added Order Cancelled function to SiteLink

I had to fix the WiFi bridge too because the cancel endpoint doesn't
return a body so the JSON decoding fails. Now the bridge grabs the
content length from the response in the event we ever need that again.

If we need to grab more of these things from the API endpoint, we should
look into regex somehow.

Next up is the last existing endpoint which is the "update order" one.
Primarily this will be used to verify someone really can vend what they
want AND to update vended amounts after the vend itself has kicked off.
50e74f89
Refactored SiteLinkAck out of the SiteLink class
by jnesselr 4 years 11 months
Refactored SiteLinkAck out of the SiteLink class

The SiteLink will have "update order" added soon and that means
it needs some of the ACK stuff available outside the SiteLink class.
7741c2f3
Added "update credit by card" endpoint to SiteLink
by jnesselr 4 years 11 months
ac3dee17
Automated fetching products from the host side
by jnesselr 4 years 11 months
Automated fetching products from the host side

This should be the last commit in our paradigm shift. It should
help make everything more stable. At the very least, we can now get
both credit and orders "at the same time" (meaning submitted at the
same time) without them trampling all over each other.
b26a6ea9
Refactored order processing to work with new ACK p...
by jnesselr 4 years 11 months
Refactored order processing to work with new ACK paradigm
6a5bd3b3
Get order for SiteLink sends ACKs correctly now
by jnesselr 4 years 11 months
af309c21
Bumped the Bridge speed back up to 115200
by jnesselr 4 years 11 months
Bumped the Bridge speed back up to 115200

We lowered it to 9600 to reduce the chance of buffer overflows but
now that we're removing the possibility of buffer overflows from
the code itself, it doesn't really mater what speed we send it at.

The only possible concern is bit errors, but I have no error checking
and for now I'm mostly just hoping for the best :)
f994c653
Update order now sends ACK at the correct times
by jnesselr 4 years 11 months
b24ce1f3
Report a bug