tinytuya
tinytuya copied to clipboard
Can one connect to the fingerbot directly using Bluetooth without a hub?
I am planning to buy a Fingerbot, but I would like to know if this API allows for a local Bluetooth communication with the device (say, from a raspberry pi).
Thanks.
Hi @falhumai96 - tinytuya
uses TCP/IP via WiFi or LAN communication, not bluetooth directly.
I see, so it seems it requires a Hub to function properly.
Yes, I suspect that is the case. I have tested using a hub to manage simple bluetooth devices via tinytuya
. I don't know about the fingerbot, but would love to know if that works as well.
Although TinyTuya currently does not support it, I don't see why it couldn't be added. It would take some R&D time to reverse engineer the BLE endpoints, but it should be possible. Unfortunately I'm out of town and didn't bring a hub or fingerbot with me so I won't be able to look into it until later next month.
Well, I looked into this, and it's not looking too good. It turns out BT devices use an entirely different protocol and as such I feel it's going to be out of scope for the TinyTuya project. I was hoping it was going to be the same protocol as the LAN just wrapped in GATT messages, however that is not the case and pretty much none of the existing code can be used in implementing it. There is already a hubless Fingerbot demo program at https://github.com/redphx/poc-tuya-ble-fingerbot however.
Bummer. Thanks for exploring this @uzlonewolf !