anki-drive-java icon indicating copy to clipboard operation
anki-drive-java copied to clipboard

some minor fixes

Open tenbergen opened this issue 7 years ago • 0 comments

Modifications: server.js - updated to reference read and write characteristics of vehicles by array slot rather than search for them. Some Node versions don’t like the lambda search.

build.gradle - updated to add a gradle task to start server. ./gradlew ndm_start wouldn’t keep the server alive. Now, ./gradle server will.

README.md - updated to reflect new usage of NodeJS server bluetooth gateway. Also added main class AnkiConnectionTest.java to try out the API.

AnkiConnectionTest.java - added to illustrate usage and step-by-step instructions to get some example communication going with a vehicle.

AnkiConnector.java - commented-out if-statement in void connect(Vehicle) method responsible for error-handling. This caused the connection with the bluetooth gateway to fail because the bluetooth gateway sometimes likes to timeout upon first connection. Removing this should fix that (at the expense of error handling, at the moment).

Model.java - updated for new ANKI Supertrucks “Freewheel” and “X52Ice.” Added placeholder for currently known, but untested models (i.e. X52 is probably 0x10 and 0x12 exists, but no clue what it is).

tenbergen avatar Sep 18 '18 01:09 tenbergen