Description of changes:
Now the SDK would extract any pattern between "iot." and ".amazonaws" as region.
For example: "XXXX.iot.test-region-value.amazonaws.com". If the region is not specified, the device would use 'test-region-value' as the region option.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available:
Description of changes: Now the SDK would extract any pattern between "iot." and ".amazonaws" as region. For example: "XXXX.iot.test-region-value.amazonaws.com". If the region is not specified, the device would use 'test-region-value' as the region option.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.