Replies: 1 comment 5 replies
-
Android should not not needed per se (but maybe Android projects can be useful inspiration). You'd just need some sort of library or interface with Bluetooth Low Energy. Here is some Python example code: https://pybricks.com/projects/tutorials/wireless/hub-to-device/pc-communication/ |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm new to the world of Pybricks and Lego robotics in general but I've got some cool stuff up and running and am looking to take it a step further. I'm looking to communicate with my hubs from my PC and I see that the way to do that is via Nordic UART Service. I really need to do this in Java for reasons of convenience with my related projects however I've only found a couple of reference implementations which are very old and bring in a whole bunch of Android Studio baggage with them.
https://github.com/NordicPlayground/Android-nRF-UART/blob/master/app/src/main/java/com/nordicsemi/nrfUARTv2/UartService.java
https://github.com/adafruit/Adafruit_Android_BLE_UART/blob/master/app/src/main/java/com/adafruit/bleuart/BluetoothLeUart.java
My questions are.. is Android a necessary dependency to set up communication with the Hub via UART? And is anyone aware of a lightweight (few dependencies) sample implementation in Java that I could reference?
Many Thanks,
Ben
Beta Was this translation helpful? Give feedback.
All reactions