Closed AntonSmatanik closed 6 years ago
Hello @AntonSmatanik,
Yes, this SDK works with React Native. Check out the blog post by @chrisradek on React Native Support.
AWS Amplify also works with React Native.
That is nice, but is there some example how to set device with secrets and certificates? Need to use it with broker.
@AntonSmatanik
This SDK allows you to administer IoT Devices, but does not include any functionality to act as a device via MQTT.
AWS Amplify does include a PubSub module, but I suspect that might not fit your use case as you're wanting to use certificates for authentication.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Is is possible to use aws-sdk-js with react-native for authentication via secrets and certificates?
With aws-iot-device-sdk I just set it like:
awsIot.device({ keyPath: awsConfig.broker.keyPath, certPath: awsConfig.broker.certPath, caPath: awsConfig.broker.caPath, host: awsConfig.broker.endpoint, clientId: uuid.v4(), baseReconnectTimeMs: awsConfig.broker.reconnect, maximumReconnectTimeMs: awsConfig.broker.maximumReconnect, })
Question is if something like this is possible with React Native...