jkua / wheelwriter-interface

Low-level IBM Wheelwriter interface
7 stars 0 forks source link

REST/Serial over wifi #3

Open BlipRanger opened 1 week ago

BlipRanger commented 1 week ago

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?

jkua commented 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:

  1. type would be a good first candidate as you can just send it ASCII + escape sequences and it will print it
  2. relay would certainly be powerful, but developers would need to port some/all of Wheelwriter.h in order to use it.
  3. read and keyboard seems messy for REST. You'd have to poll to get data
  4. query, sample, and the tests buffer, char, circle would be fine. The tests probably have limited utility

A lock would need to be implemented so that commands from multiple users, whether serial or REST, won't step on each other