Open wooj2 opened 3 years ago
Is there a way to use the MQTT client as in the boto3 python sdk? I am trying to publish to a topic from a swift lambda. In boto3 it looks like this:
import json
import boto3
client = boto3.client('iot-data', region_name='us-east-2')
def lambda_handler(event, context):
response = client.publish(
topic='topic',
qos=1,
payload=json.dumps({"foo":"bar"})
)
return {
'statusCode': 200,
'body': json.dumps('Published to topic')
}
Take the wrapped mqtt client in the crt and additionally wrap it in a client in the client runtime to be used by IOT device SDKs. Get IOT device SDKs working and functional for delivery
internal id: 176365361