diff --git a/doc/health-api.txt b/doc/health-api.txt
index 26e7a4a..2c48ff2 100644
--- a/doc/health-api.txt
+++ b/doc/health-api.txt
string Role:
- Mandatory. Possible values: "Source",
- "Sink"
+ Mandatory. Possible values: "source",
+ "sink"
string Description:
ChannelType:
Optional, just for sources. Possible
- values: "Reliable", "Streaming"
+ values: "reliable", "streaming"
Possible Errors: org.bluez.Error.InvalidArguments
Creates a new data channel. The configuration should
indicate the channel quality of service using one of
- this values "Reliable", "Streaming", "Any".
+ this values "reliable", "streaming", "any".
Returns the object path that identifies the data
channel that is already connected.
Properties string Type [readonly]
- The quality of service of the data channel. ("Reliable"
- or "Streaming")
+ The quality of service of the data channel. ("reliable"
+ or "streaming")
object Device [readonly]
diff --git a/profiles/health/hdp.c b/profiles/health/hdp.c
index 93d260e..bf8f82f 100644
--- a/profiles/health/hdp.c
+++ b/profiles/health/hdp.c
const char *type;
if (chan->config == HDP_RELIABLE_DC)
- type = "Reliable";
+ type = "reliable";
else
- type = "Streaming";
+ type = "streaming";
dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, &type);
app = l->data;
- if (g_ascii_strcasecmp("Reliable", conf) == 0)
+ if (g_ascii_strcasecmp("reliable", conf) == 0)
config = HDP_RELIABLE_DC;
- else if (g_ascii_strcasecmp("Streaming", conf) == 0)
+ else if (g_ascii_strcasecmp("streaming", conf) == 0)
config = HDP_STREAMING_DC;
- else if (g_ascii_strcasecmp("Any", conf) == 0)
+ else if (g_ascii_strcasecmp("any", conf) == 0)
config = HDP_NO_PREFERENCE_DC;
else
return btd_error_invalid_args(msg);
diff --git a/profiles/health/hdp_util.c b/profiles/health/hdp_util.c
index b2fb2ac..5799ae5 100644
--- a/profiles/health/hdp_util.c
+++ b/profiles/health/hdp_util.c
dbus_message_iter_get_basic(value, &chan_type);
- if (g_ascii_strcasecmp("Reliable", chan_type) == 0)
+ if (g_ascii_strcasecmp("reliable", chan_type) == 0)
app->chan_type = HDP_RELIABLE_DC;
- else if (g_ascii_strcasecmp("Streaming", chan_type) == 0)
+ else if (g_ascii_strcasecmp("streaming", chan_type) == 0)
app->chan_type = HDP_STREAMING_DC;
else {
g_set_error(err, HDP_ERROR, HDP_DIC_ENTRY_PARSE_ERROR,
diff --git a/test/test-health b/test/test-health
index 666972c..052a602 100755
--- a/test/test-health
+++ b/test/test-health
try:
sel = int(sys.stdin.readline())
if sel == 1:
- role = "Source"
+ role = "source"
elif sel == 2:
- role = "Sink"
+ role = "sink"
else:
raise ValueError
except (TypeError, ValueError):
sys.exit()
pref = None
-if role == "Source":
+if role == "source":
while pref == None:
try:
print("Select a preferred data channel type 1.",)
print("reliable 2. streaming: ",)
sel = int(sys.stdin.readline())
if sel == 1:
- pref = "Reliable"
+ pref = "reliable"
elif sel == 2:
- pref = "Streaming"
+ pref = "streaming"
else:
raise ValueError
print("Connecting to device %s" % (select))
-if role == "Source":
- chan = device.CreateChannel(app_path, "Reliable")
+if role == "source":
+ chan = device.CreateChannel(app_path, "reliable")
else:
- chan = device.CreateChannel(app_path, "Any")
+ chan = device.CreateChannel(app_path, "any")
print(chan)