Open dev-git opened 2 years ago
Did you ever get anywhere with this?
Did you ever get anywhere with this?
I gave up with the holman client and tried a few other Bluetooth clients. After some expermination, I settled on the Bleak Client which was stable and worked well. Here's some of my code that turns the timer on for 20 mins (from a RPi): https://github.com/dev-git/thepythonfiles/blob/main/gardenpi/bleak/write.py There should be some code around that reads the other settings (Battery/Watering status/etc) Hope that's useful.
Hi,
I'm trying to connect to the BX1 (HOLMAN_CO3111) with holmanctl (on a raspberry pi) but can't seem to get it to work. It looks like I can connect but then the connection instantly drops and I can't retrieve any of the settings or switch the timer on/off. Have followed your instructions for adding the BTX1 and they appear to have the same service UUID (c521f000-0d70-4d4f-8e43-40d84c50ab38). Have run nRF on my android phone and here's the content. Any help much appreciated. Thanks.
nRF Connect, 2022-08-18 BX1 (AA:BB:CC:DD:EE:FF) V 19:42:15.157 Connecting to AA:BB:CC:DD:EE:FF... D 19:42:15.157 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M) D 19:42:16.080 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2) I 19:42:16.080 Connected to AA:BB:CC:DD:EE:FF V 19:42:16.099 Discovering services... D 19:42:16.099 gatt.discoverServices() D 19:42:16.118 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED I 19:42:16.368 Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms) D 19:42:16.703 [Callback] Services discovered with status: 0 I 19:42:16.704 Services discovered V 19:42:16.718 Generic Access (0x1800)