Bluetooth communication with smartphone
-
I'm thinking about configuring some specific settings (like WiFi) through bluetooth with a custom mobile app that I'll write. To do so, I would like to send and receive JSON messages between a Lopy and a smartphone. However, I can't find how to get started (Lopy side) with what's in the documentation. Anybody can help me with these first steps?
-
@iber
LoPy currently only supports Bluetooth LE GATT protocol which in simple terms is a key/value read+write protocol (like a simple database) and ill suited for streaming serialized data like JSON.You should however be able to make your mobile app write to Bluetooth LE characteristics on the LoPy which then set the WiFi and password.
The GATTS example should give you the right idea: https://docs.pycom.io/pycom_esp32/library/network.Bluetooth.html#network.characteristic.events