Open gnac opened 5 years ago
Heres a list of all the lists used by the s2bapp interface:
"motorAll": [ "motor A", "motor B", "motors AB", "motor C", "motor D", "all motors" ],
"motorDirection": [ "this way", "that way", "other way" ],
"motor": [ "motor A", "motor B", "motors AB", "motor C", "motor D" ],
"tiltDirAny": [ "any", "up", "down", "left", "right" ],
"lightColor": [ "pink", "purple", "blue", "sky blue", "teal", "green", "yellow", "orange", "red", "white", "off", "random" ],
"forwardOrBackward": [ "forwards", "backwards" ],
"leftOrRight": [ "left", "right" ],
"fBLR": [ "forwards", "backwards", "left", "right" ],
Thank you very much for your detailed description. We have already published two apps, one for IOS and one for Android which are used to communicate between the browser (javascript) and WeDo, which maybe works similar than boost. Do you know if there are open source libraries for native Android and/or IOS available? That would make things much easier.
Won't we just need a wrapper that implements the Bluetooth LE commands and backends for the IOS/Android Bluetooth LE APIs?
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
The s2bapp starts a server on http://localhost:17327. The general status of the hub can be requested using
http://localhost:17327/poll
This also tells the s2bapp that "Scratch is Connected" All commands take the form ofhttp://localhost:17327/<command>/<parameter_0>/<parameter_n>
Some commands provide a callback like feature using a wait idhttp://localhost:17327/<command>/<waitId>/<parameter_0>/<parameter_n>
which can be polled for with this requesthttp://localhost:17327/poll/<waitId>
This will return the status with a _busy line. if that line contains the command id, the command is still in process.s2bapp http interface