After implementing DIY BLE_APP for NXP IoT Bluetooth scanning, connection and reading sensor data last week, this week we improved and completed the app end to write data to the NXP IoT device via Bluetooth to achieve dimming control of the RGB LED.
First, add a Bluetooth service thread to the online GUI Rapid IoT Studio end to drive the RGB LED.
The UUIDof the Bluetooth thread is set to be arranged in the same order as other threads before, and the data is still in the unsigned int format.
Secondly, on the app side, a touch slider is designed to achieve RGB three-color adjustment.
In order to send control data, you need to select the write service first, then you can realize the dimming control, and the overall operation is very smooth.
Attachment: dwwzl_ble_v1.5.apk
dwwzl_ble_v1.5.apk.zip
(2.66 MB, downloads: 1)
dwwzl_ble_v1.5.apk.zip
(2.66 MB, downloads: 1)
This content is created by EEWORLD forum user dwwzl. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source