{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/526","repository_url":"https://api.github.com/repos/Azure/azure-iot-sdks","labels_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/526/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/526/events","html_url":"https://github.com/Azure/azure-iot-sdks/issues/526","id":151953049,"number":526,"title":"iothub_client_sample.py failed to assign new properties to message","user":{"login":"Laurachu","id":18486615,"avatar_url":"https://avatars.githubusercontent.com/u/18486615?v=3","gravatar_id":"","url":"https://api.github.com/users/Laurachu","html_url":"https://github.com/Laurachu","followers_url":"https://api.github.com/users/Laurachu/followers","following_url":"https://api.github.com/users/Laurachu/following{/other_user}","gists_url":"https://api.github.com/users/Laurachu/gists{/gist_id}","starred_url":"https://api.github.com/users/Laurachu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laurachu/subscriptions","organizations_url":"https://api.github.com/users/Laurachu/orgs","repos_url":"https://api.github.com/users/Laurachu/repos","events_url":"https://api.github.com/users/Laurachu/events{/privacy}","received_events_url":"https://api.github.com/users/Laurachu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-iot-sdks/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"mregen","id":7962757,"avatar_url":"https://avatars.githubusercontent.com/u/7962757?v=3","gravatar_id":"","url":"https://api.github.com/users/mregen","html_url":"https://github.com/mregen","followers_url":"https://api.github.com/users/mregen/followers","following_url":"https://api.github.com/users/mregen/following{/other_user}","gists_url":"https://api.github.com/users/mregen/gists{/gist_id}","starred_url":"https://api.github.com/users/mregen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mregen/subscriptions","organizations_url":"https://api.github.com/users/mregen/orgs","repos_url":"https://api.github.com/users/mregen/repos","events_url":"https://api.github.com/users/mregen/events{/privacy}","received_events_url":"https://api.github.com/users/mregen/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-04-29T19:43:03Z","updated_at":"2016-05-04T06:20:06Z","closed_at":"2016-05-04T06:20:06Z","body":"Hi,\r\n\r\nI need to send Python device messages with customized properties to IoT Hub. I tried to run the sample code iothub_client_sample.py and found the following code in method \"iothub_client_sample_run()\" failed to add the properties to the message. \r\n...\r\n# optional: assign properties\r\n                prop_map = message.properties()\r\n                prop_text = \"PropMsg_%d\" % i\r\n                prop_map.add(\"Property\", prop_text)\r\n...\r\nI tried prop_map.add_or_update(\"Property\", prop_text). It failed too.\r\n\r\nCan someone help me with this?\r\n\r\nThank you in advance!\r\nLaura\r\n"}}