Commit graph

22 commits

Author SHA1 Message Date
brentru
dfd8d33deb return None instead of -1 2019-05-31 18:12:24 -04:00
brentru
3eac209bec all responses need to be closed, returning responses causes errors 2019-05-23 13:15:29 -04:00
brentru
a7b05b850e add getter/setter for device_id property 2019-05-23 11:39:59 -04:00
brentru
d169190ce9 refactor: device_id in init, move new self._device_id into all calls, remove device_id from functions, pylint 2019-05-22 16:49:42 -04:00
brentru
012db477d8 raise error for subsequent c2d requests 2019-05-22 12:50:17 -04:00
brentru
b74a545fa0 comments/cleanup 2019-05-21 13:58:15 -04:00
brentru
9b3ea3e89c fix for docstring 2019-05-21 13:46:49 -04:00
brentru
0c97a1d037 fix delete_device, adding etag specifier to headers 2019-05-21 13:27:56 -04:00
brentru
2bd864be11 add simpletest for messaging 2019-05-21 12:31:23 -04:00
brentru
484158b771 pylint! 2019-05-21 12:15:33 -04:00
brentru
c7d73609dd remove prints 2019-05-21 12:11:55 -04:00
brentru
d57aa03b72 message-queue handling to c2d, add optional return_response kwarg to _post for sending device messages 2019-05-21 11:12:36 -04:00
brentru
c677f4f3df fix url string... 2019-05-20 17:53:00 -04:00
brentru
ab27552901 pylint a bit 2019-05-20 17:50:24 -04:00
brentru
0c36033047 working on get_hub_message, d2c is funky 2019-05-20 17:28:22 -04:00
brentru
7bafda54df adding in c2d messaging 2019-05-20 15:49:44 -04:00
brentru
4a361f1545 pylinted! 2019-05-20 13:22:50 -04:00
brentru
a1c8fa8c15 make wifi_type private, better status parsing 2019-05-20 13:10:02 -04:00
brentru
ee95fbb469 add http status parsing based on common azure error codes, add replace device twin, add put http method 2019-05-10 17:26:14 -04:00
brentru
614a077220 add delete/patch http methods, expose device twin get and replace 2019-05-10 16:57:51 -04:00
brentru
3eb01b1bba add get_device, remove hardcoded authorization token 2019-05-10 15:14:21 -04:00
brentru
285ea9f7eb init! 2019-05-10 15:12:50 -04:00