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.
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.