Establishes a wireless connection, enabling a wireless serial pass-through service (supports M5Stack Fire only).
Init ble uart name
Initialization setting, configures the name of the wireless device.
BLE UART Write
Sends data wirelessly.
BLE UART remain cache
Checks the number of bytes in the wireless UART cache.
BLE UART read all
Reads all data in the wireless UART cache.
BLE UART read characters
Reads 'n' number of data from the wireless UART cache.
Establishes a wireless pass-through connection to send on/off commands to control the LED.
Connects to the Blynk server, uses BLE to connect to the Blynk App, enabling mobile phone control of M5Stack Fire (supports M5Stack Fire only).
Init blynk name token type BLE
Initializes Blynk configuration, enters device name and the app token.
Virtual write number data
Writes data to a virtual port number.
Notify message
Sends system-level message notifications to the app.
Tweet message
Sends message notifications to the Twitter client.
On event write get number message
Receives data that will be written to a specified virtual port from the app, if not specified it is set to V*.
On event read get number
Reads the specified virtual port number from the app.
On event
Callback function for wireless connection/disconnection.
Use Blynk to control the color and brightness of the M5StackFire's RGB light strip, and display it in real-time on the screen.
Download the mobile Blynk app, register an account. You can choose to use the official Blynk server or set up your server. Here we provide a free server for testing (120.24.58.30:9443).
Register a Blynk account using your email, and log in with that account after registration is successful.
Create a new project, select ESP32 Dev Board as the device, and choose BLE as the connection method. Note down the AUTH TOKEN.
Follow the steps below to add components, including the necessary BLE connection component.