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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login