Open BlipRanger opened 1 week ago
Unfortunately REST support currently doesn't exist; it is merely a figment of my imagination. That said, it sounds like a good weekend project, so I might take a look this weekend.
I'd be interested to hear what you're looking for in such an interface. My thinking was that this would a convenient way for smartphones, tablets, and other devices on the network to talk to the typewriter.
My initial thought for implementation was to provide REST calls for the some of the various functions currently implemented:
type
would be a good first candidate as you can just send it ASCII + escape sequences and it will print itrelay
would certainly be powerful, but developers would need to port some/all of Wheelwriter.h in order to use it.read
and keyboard
seems messy for REST. You'd have to poll to get dataquery
, sample
, and the tests buffer
, char
, circle
would be fine. The tests probably have limited utilityA lock would need to be implemented so that commands from multiple users, whether serial or REST, won't step on each other
This issue is just to check in on the current state of / discuss the REST api implementation. Is the plan to essentially run a REST server which can call the same commands exposed via serial?