const char* IoTHubAccount_GetEventhubConsumerGroup(void)
{
#ifdef MBED_BUILD_TIMESTAMP
    static char* value[MBED_PARAM_MAX_LENGTH];
    (void)mbed_log("EventhubConsumerGroup?\r\n");
    (void)scanf("%s", &value);
    (void)mbed_log("Received '%s'\r\n", value);
    return value;
#else
    static char consumerGroup[64];

    char *envVarValue = getenv("IOTHUB_EVENTHUB_CONSUMER_GROUP");

    if (envVarValue != NULL)
    {
        strcpy(consumerGroup, envVarValue);
    }
    else
    {
        strcpy(consumerGroup, DEFAULT_CONSUMER_GROUP);
    }

    return consumerGroup;
#endif
}
const char* IoTHubAccount_GetIoTHubConnString(void)
{
#ifdef MBED_BUILD_TIMESTAMP
    static char* value[MBED_PARAM_MAX_LENGTH];
    (void)mbed_log("IoTHubConnString?\r\n");
    (void)scanf("%s", &value);
    (void)mbed_log("Received '%s'\r\n", value);
    return value;
#else
    return getenv("IOTHUB_CONNECTION_STRING");
#endif
}
const char* IoTHubAccount_GetDeviceKey(void)
{
#ifdef MBED_BUILD_TIMESTAMP
    static char* value[MBED_PARAM_MAX_LENGTH];
    (void)mbed_log("DeviceKey?\r\n");
    (void)scanf("%s", &value);
    (void)mbed_log("Received '%s'\r\n", value);
    return value;
#else
    return getenv("IOTHUB_DEVICE_KEY");
#endif
}
const char* IoTHubAccount_GetEventhubListenName(void)
{
#ifdef MBED_BUILD_TIMESTAMP
    static char* value[MBED_PARAM_MAX_LENGTH];
    (void)mbed_log("EventhubListenName?\r\n");
    (void)scanf("%s", &value);
    (void)mbed_log("Received '%s'\r\n", value);
    return value;
#else
    return getenv("IOTHUB_EVENTHUB_LISTEN_NAME");
#endif
}
const char* IoTHubAccount_GetIoTHubSuffix(void)
{
#ifdef MBED_BUILD_TIMESTAMP
    static char* value[MBED_PARAM_MAX_LENGTH];
    (void)mbed_log("IoTHubSuffix?\r\n");
    (void)scanf("%s", &value);
    (void)mbed_log("Received '%s'\r\n", value);
    return value;
#else
    return getenv("IOTHUB_SUFFIX");
#endif
}
const char* IoTHubAccount_GetEventhubConsumerGroup(void)
{
#ifdef MBED_BUILD_TIMESTAMP
    static char* value[MBED_PARAM_MAX_LENGTH];
    (void)mbed_log("EventhubConsumerGroup?\r\n");
    (void)scanf("%s", &value);
    (void)mbed_log("Received '%s'\r\n", value);
    return value;
#else
    return getenv("IOTHUB_EVENTHUB_CONSUMER_GROUP");
#endif
}
const char* IoTHubAccount_GetProtocolGatewayHostName(void)
{
#ifdef MBED_BUILD_TIMESTAMP
    static char* value[MBED_PARAM_MAX_LENGTH];
    (void)mbed_log("ProtocolGatewayHostName?\r\n");
    (void)scanf("%s", &value);
    (void)mbed_log("Received '%s'\r\n", value);
    return value;
#else
    return getenv("IOTHUB_PROTOCOL_GATEWAY_HOSTNAME");
#endif
}
const char* IoTHubAccount_GetSharedAccessSignature(void)
{
#ifdef MBED_BUILD_TIMESTAMP
    char tempValue[MBED_PARAM_MAX_LENGTH];
    static char value[MBED_PARAM_MAX_LENGTH];

    (void)mbed_log("SharedAccessSignature?\r\n");
    (void)scanf("%s", &tempValue);
    (void)sprintf(value, "SharedAccessSignature %s", tempValue);
    (void)mbed_log("Received '%s'\r\n", value);
    return &value;
#else
    return getenv("IOTHUB_SHARED_ACCESS_SIGNATURE");
#endif
}
const size_t IoTHubAccount_GetIoTHubPartitionCount(void)
{
    int value;

#ifdef MBED_BUILD_TIMESTAMP
    (void)mbed_log("EventHubPartitionCount?\r\n");
    (void)scanf("%i", &value);
    (void)mbed_log("Received '%i'\r\n", value);
#else
    char *envVarValue = getenv("IOTHUB_PARTITION_COUNT");

    if (envVarValue != NULL)
    {
        value = atoi(envVarValue);
    }
    else
    {
        value = DEFAULT_PARTITION_COUNT;
    }
#endif

    return (size_t)value;
}