diff --git a/README.md b/README.md index 0521767..e9ea70a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/devicecloud/devicecore.py b/devicecloud/devicecore.py index 2058454..5ddcd2a 100644 --- a/devicecloud/devicecore.py +++ b/devicecloud/devicecore.py @@ -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 diff --git a/docs/index.rst b/docs/index.rst index e892d0d..9119adf 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -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 ==================