tuya / tuya-connect-kit-for-mqtt-embedded-c

Provide core capabilities like device connection, uplink and downlink communication and OTA across platforms and operating systems.
MIT License
62 stars 54 forks source link

Enhance code robustness, fix variable usage issue, and close BLE provisioning service timer #104

Closed shiliu-yang closed 12 months ago

shiliu-yang commented 1 year ago

This merge request includes the following three commits:

  1. Added input parameter validation to avoid null pointer access
  2. Fix variable usage before initialization by defining the variable in function header
  3. Close timer when stopping BLE provisioning service

These changes aim to enhance code robustness, improve code readability and maintainability, and fix potential issues.