Skip to content

Commit

Permalink
Merge pull request #28 from moshe-shahar/log-device-name
Browse files Browse the repository at this point in the history
Log allocated device name and ID
  • Loading branch information
Janne Määttä authored Oct 15, 2020
2 parents 2becf23 + 83a0930 commit 09a3032
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pelion_test_lib/tools/external_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def __initialize_resource(self):

self.resource = self.client.allocate(description, expiration_time, allocation_timeout, local_allocation)
if self.resource:
log.info('Allocated device {}, id: {}'.format(self.resource.info().get('name', None), self.resource.resource_id))
self.resource.open_connection(self.remote_module.SerialParameters(baudrate=configs['baudrate']))
try:
self.resource.on_release(on_release)
Expand Down

0 comments on commit 09a3032

Please sign in to comment.