Skip to content

Mongoose OS 2.1

Compare
Choose a tag to compare
@rojer rojer released this 18 Apr 13:44
· 638 commits to master since this release

New features

  • Azure IoT Hub support: easy onboarding (mos azure-iot-setup) and a library Cloud-to-Device and Device-to-Cloud messaging, Device Twin shadow support, Direct Method invocation and RPC over Direct Method (including mos call support).
  • Multiple WiFi STA config support (currently 3). mOS will cycle through the list until successful connection. Last successful config index will be saved to make connection faster after reboot.

Important API changes

  • BREAKING: Change shadow API to return state object. See here for details.

Fixes and minor changes

  • mjs: Add String.indexOf
  • mjs: Add s2o(), a way to convert structs to objs (see here)
  • Add mg_url_encode_opt() - a parametrized version of mg_url_encode()
  • Add json_{sprintf,vsprintf}()
  • Add mgos_mqtt_pubf() - a helper to pub JSON messages
  • CC32XX SSL/TLS refactoring. Make CC3220 use mbedTLS for TLS.
  • CC3220 SDK update (to 2.10.00.04)
  • DNS-SD: Add an option to hide info from adv, add mgos_dns_sd_advertise(), mgos_dns_sd_goodbye()
  • Fix mg_http_parse_header(): treat ";" as a delimiter.
  • Add shadow.enable knob to control the shadow lib
  • MQTT: Only PUBACK if the message's QoS is > 0
  • mos: Use --timeout for config and file ops
  • Add ability to remove event handlers
  • Add M5stack demo app.