def get_qrcode(self, product_id=<NUM_LIT:1>):
if product_id == '<STR_LIT:1>' or product_id == <NUM_LIT:1>:<EOL><INDENT>params = None<EOL><DEDENT>else:<EOL><INDENT>params = {'<STR_LIT>': product_id}<EOL><DEDENT>return self._get('<STR_LIT>', params=params)<EOL>
获取deviceid和二维码
详情请参考
https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-4

:param product_id: 设备的产品编号
:return: 返回的 JSON 数据包