Complete Example
Based on existing APIs and libraries, a simple complete example has been implemented.

Implement Functionality
Interact with the Cloud via MicroPython-MQTT
Subscribe to the command topic to receive commands issued from the cloud
Publish to the data topic to send data and command execution results
Implement a local HTTP service using Microdot
Listen on a local port to provide HTTP service
Provide a RESTful API to retrieve APP configurations
Serve static pages to display APP configurations
Interact with BLE devices via the Cassiablue API
Perform real-time scanning of BLE advertising packets and parse supported device advertising
After receiving device commands from the cloud, connect to the device, perform read/write operations, and receive notification data via the API

Github
Refer Cassia SDK Guide Micro APP.