fix: undefined return value

This commit is contained in:
Tony Yang
2023-05-03 15:34:19 +08:00
parent c6806d525d
commit 6927add4b1

View File

@@ -29,7 +29,7 @@ def lambda_handler(event, _context):
print(f"Error while publishing to MQTT topic {TOPIC}.")
raise e
return url
return result['url']
def iot_publish(payload):