Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ for device in dc.devicecore.list_devices():
# This is done using the device cloud stream functionality
for stream in dc.streams.get_streams():
if stream.get_data_type().lower() in ('float', 'double'):
print "%s -> %s" % (stream.get_name(), stream.get_current_value())
print "%s -> %s" % (stream.get_stream_id(), stream.get_current_value())
```

For more examples and detailed documentation, be sure to checkout out
Expand Down
2 changes: 1 addition & 1 deletion devicecloud/devicecore.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_tags(self, use_cached=True):
else:
return []

def get_connected(self, use_cached=True):
def is_connected(self, use_cached=True):
"""Return True if the device is currrently connect and False if not"""
device_json = self.get_device_json(use_cached)
return int(device_json.get("dpConnectionStatus")) > 0
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ quick example of what the API looks like::
# This is done using the device cloud stream functionality
for stream in dc.streams.get_streams():
if stream.get_data_type().lower() in ('float', 'double'):
print "%s -> %s" % (stream.get_name(), stream.get_current_value())
print "%s -> %s" % (stream.get_stream_id(), stream.get_current_value())

Indices and tables
==================
Expand Down