kurbatov / firmata4j

Firmata client written in Java.
MIT License
87 stars 45 forks source link

Document what queries are required for Firmata Device #35

Closed HawaiianSpork closed 4 years ago

HawaiianSpork commented 4 years ago

It took me a while to realize why Firmata4j was timing out when calling device.ensureInitializationIsDone(). It turns out I needed to implement responses for the following queries (which isn't automatically implemented for you if you are using the arduino firmata library) CAPABILITY_QUERY, PIN_STATE_QUERY, ANALOG_MAPPING_QUERY

Some documentation or better yet an error message saying the required queries may help future users of the library.