...
Additionally, users will need to add a dependency for the Serial Java library used by the SDK. This can be done b by modifying the settings.gradle file with the following highlighted lines…lines:
...
…and adding a reference to the git repo for the serial library to the VictoRCommunications relevant module.
...
Device Manager
Instantiation
...
Code Block | ||
---|---|---|
| ||
import com.fn.victorcommunications.VictorBleDeviceManager; public class MainActivity extends Activity { VictorBleDeviceManager deviceManager; @Override public void onCreate(Bundle savedInstanceState) { deviceManager = new VictorBleDeviceManager(this); } } |
USB
Code Block | ||
---|---|---|
| ||
import com.fn.victorcommunications.VictorUsbDeviceManager; public class MainActivity extends Activity { VictorUsbDeviceManager deviceManager; @Override public void onCreate(Bundle savedInstanceState) { deviceManager = new VictorUsbDeviceManager(this); } } |
...