Skip to content

About

dmhttp demo

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

unirtos-dmhttp-demos

中文 | English

This repository is recommended to be used via the unirtos-cli demo workflow to ensure a consistent process for project creation, environment setup, and compilation.

Feature Description

This demo shows a complete DMHTTP device management workflow on UniRTOS, including endpoint configuration, registration form retrieval, registration reporting, and callback-driven result handling.

  • Demonstrates DMHTTP common configuration items: EP_INFO, FIELDCFG, SIM, CID, KEY, and HEART_BEAT
  • Demonstrates enabling and querying resume-save behavior for power-loss recovery scenarios
  • Demonstrates GET_INFO and POST_REG task flow with serialized execution control
  • Demonstrates asynchronous notify callback handling and download data retrieval
  • Demonstrates semaphore-based synchronization between perform task and callback events

Quick Start

1. Install the UniRTOS Toolchain

Once all the above tools are installed, verify the following commands are available:

python --version    # Python3
git --version
unirtos --version   # version 1.0.5 or above
unirtos-cli version # version 1.0.11 or above

2. Pull the Demo Using unirtos-cli

List available demos and versions:

unirtos-cli ls-demos

Create this demo project:

unirtos-cli new -r unirtos-dmhttp-demos

To specify a version:

unirtos-cli new -r unirtos-dmhttp-demos -v 1.0.0

3. Enter the Project and Build

cd unirtos-dmhttp-demos-1.0.0
unirtos-cli env-setup
unirtos-cli build

Common Commands

# Open the SDK menu configuration
unirtos-cli menuconfig

# Clean build artifacts
unirtos-cli clean

Technical Community

Technical Community: https://forumschinese.quectel.com/c/66-category/66

Contribution Guidelines

Contributions are welcome. Please follow these guidelines when submitting:

  • Run a basic validation before submitting: env-setup, build, clean.
  • Use clear commit messages describing the purpose of the change, its scope of impact, and verification results.
  • When adding new features or changing behavior, update the README and related documentation accordingly.
  • Submit bug fixes and feature improvements via Issues or Pull Requests.

About

dmhttp demo

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages