Guidance Needed: Customizing and Using mqtt_demo_subscription_manager.c

Hi everyone,

I’m looking to use this file in my application:
[aws-iot-device-sdk-embedded-C/demos/mqtt/mqtt_demo_subscription_manager/mqtt_demo_subscription_manager.c at main · aws/aws-iot-device-sdk-embedded-C · GitHub](https://Guidance Needed: Customizing and Using mqtt_demo_subscription_manager.c)

Can anyone guide me on the flexibility provided under its license? Specifically:

  1. Can I edit the file directly for my application?
  2. Am I allowed to change function names or casing styles?
  3. Is it permissible to publish my application under the terms of this license?

I’d appreciate any insights or advice from those familiar with this.

Thanks in advance!

This demo code is meant to showcase one example and you are free to update it as per your requirements.

Again, you are free to update it as per your requirements.

This code is MIT licensed. You are free to do whatever you want.

Thank you for the guidance!

I have one more question regarding compliance:
Do I need to keep the following copyright and license notice at the beginning of the mqtt_demo_subscription_manager.c file after making modifications for my application?

/*
 * AWS IoT Device SDK for Embedded C 202412.00
 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

Yes, please keep it.