1,238 questions
0
votes
1
answer
53
views
AWS MQTT connect from Python - receive not working
I'm learning how to use MQTT on AWS IoT - the goal is to simply publish and receive between AWS IoT MQTT test client and a Python script.
I can successfully publish from my Python code but I am unable ...
0
votes
0
answers
69
views
AWS IoT SigV4 presigned WebSocket URL fails when using temporary credentials
I'm generating a SigV4 presigned WebSocket URL for AWS IoT Core using the AWS SDK for Go (v2) and the v4 signer.
It works fine with long-term credentials (we have o Proof of Concept environment), but ...
0
votes
0
answers
26
views
ValueError: Invalid Key while trying to upload code to ESP8266 device
I'm trying to connect my NodeMCU (ESP8266) device running Micropython to AWS IoT but wwhile running the code I'm getting the following error:
start connecting
Connected: True
Key and Certificate ...
0
votes
0
answers
95
views
AWS IoT MQTT: Devices randomly show as offline when subscribing to over 50 things in iOS app
I’m developing an iOS app using AWS IoT Core and MQTT to manage smart home devices. Each device has a corresponding AWS IoT "thing", and the app subscribes to the shadow delta topic of each ...
1
vote
0
answers
79
views
AWS IoT Core WebSocket MQTT via React
I'm trying to connect a web client to AWS IoT Core using JavaScript over WebSocket, authenticated via Amazon Cognito Identity Pool.
The connection works (confirmed via logs), and the subscription to ...
0
votes
1
answer
93
views
How can I fix Error EOF occurred in violation of protocol (_ssl.c:2393) with AWS IOT and MQTT
I am running python to send MQTT messages to an AWS-IOT server. It runs on a Raspberry Pi, and sends a message each time a button is pressed. It works for a while, but soon a message is sent that does ...
2
votes
1
answer
65
views
How can I get all thing names from a thing group in AWS IoT Core using a Lambda function?
I'm trying to get all the thing names that are part of a specific thing group in AWS IoT Core using a Python Lambda function.
I checked the Boto3 documentation looking for a function that retrieves ...
1
vote
2
answers
86
views
Why does AtMostOnce deliver to multiple devices? Is there a way to deliver to a single device?
I am trying AWS IoT Core and it seems when you publish message to a topic - even though I select AtMostOnce in QoS - it delivers the same message to all devices who listens this topic. Is it possible ...
0
votes
1
answer
53
views
AWS MQTT Client sdk v2 java using IAM credentials
I'm migrating AWS SDK for java from v1 to v2. Earlier I was instantiating the AWSIotMqttClient like
Credentials cred = awsService.generateTempIAMCredentialsForIOT();
// AWS IAM credentials could be ...
0
votes
1
answer
88
views
How to allow an admin to override user IoT commands in AWS IoT Core (Device Shadow)?
I’m working with AWS IoT Core and using Device Shadows to control an IoT device (ESP32 connected to a relay to turn ON/OFF a motor), Right now, any user can turn the motor ON/OFF by updating the ...
-2
votes
1
answer
110
views
2 different C SDKs for aws iot. Which one is relevant?
There are 2 C SDKs for aws iot. https://github.com/aws/aws-iot-device-sdk-embedded-C and https://github.com/awslabs/aws-c-iot. The official SDK list page indicates https://github.com/aws/aws-iot-...
0
votes
0
answers
60
views
AWS IoT MQTT Connection Issues with Cognito Authentication in React App
I'm building a React application that connects to AWS IoT via MQTT. I'm using Amazon Cognito for authentication and obtaining credentials from an Identity Pool.
Despite successful authentication and ...
1
vote
1
answer
51
views
Passing the thing name when a IAM role is assumed
I have an IoT device that is a Thing on AWS IoT. The Thing has a certificate that the device uses to connect to MQTT. I created a trust policy that allows the Thing to assume a IAM role. I also ...
0
votes
0
answers
97
views
Unable to receive IoT device shadow update events
I am trying to build a device client that is responsible for managing the IoT device. Idea is to have a control agent running all the time in a process which is responsible for provisioning the device ...
-3
votes
1
answer
81
views
Cannot Subscribe to a IOT Topic
I am trying to subscribe to AWS IoT Topic using mqtt client. Python script is as follows:
import paho.mqtt.client as mqtt
import ssl
MQTT_BROKER = '<endpoint>' # Public broker for testing
...
-1
votes
1
answer
265
views
Why do I not receive a response from $aws/certificates/create/json/accepted or rejected when I publish to topic $aws/certificates/create/json?
I have an esp32 device that has a certificate I generated in AWS to be used as a claim certificate. The esp32 connects to AWS fine and allows me to subscribe to the accepted and rejected topics. When ...
0
votes
0
answers
174
views
SiMCOM7600 can't connect MQTT(S) AWS IOT CORE +CMQTTCONNECT: 0 , 34
+CCERTLIST: "cacert.pem"
+CCERTLIST: "cert.pem"
+CCERTLIST: "keycert.pem"
OK
AT+CSSLCFG="sslversion",0,4
OK
AT+CSSLCFG="authmode",0,2
OK
AT+...
0
votes
1
answer
398
views
Issue in accessing aws-iot-device-sdk-v2 apis from react application
I am trying to use AWS IoT Device SDK JS 2 with a simple ReactJS application.
The application is targeted to run in a browser.
I have all the required certificates and credentials with me to configure ...
0
votes
1
answer
211
views
403 error when requesting AWS temporary credentials via iot
I'm following this guide to generate credentials for AWS services using a thingName, aws-iot cert and key:
https://docs.aws.amazon.com/iot/latest/developerguide/authorizing-direct-aws.html
I'm getting ...
-1
votes
1
answer
252
views
AWS - createCertificateFromCsr - Fail to connect
till now we created a certificate using sdk method IotClient.CreateKeysAndCertificate. And easily manage to connect from the client side with the private key and certificate using iot device sdk
...
0
votes
1
answer
161
views
Unable to pass column names in IoT rules for timestream table
I am trying to create an IoT rule for inserting the data in the AWS Timestream table and I configured my query as below:
SELECT ax-lt-011 AS first_column, ax-lt-021 AS second_column FROM "iot/...
0
votes
0
answers
51
views
When calling the TestInvokeAuthorizer operation: Missing Authentication Token
i have a custom authoriser which is linked to a lambda function which validates a jwt token using symmetric key , the lambda function event looks like this
{
"token": "MyToken"
}
...
1
vote
0
answers
216
views
Greengrass not unzipping s3 artifact
I'm trying the AWS greengrass to manage my devices. The bellow is my receipe.
{
"RecipeFormatVersion": "2020-01-25",
"ComponentName": "com.test.setup",
&...
1
vote
0
answers
346
views
Unable to connect to MQTT (AWS IoT Core) in a Flutter application
We have a Flutter application where the device subscribes to MQTT and can publish information. The application connects to AWS IoT Core using mqtt_client. The vast majority of devices running our app ...
0
votes
0
answers
158
views
AWS MQTT3 Websockets Connection Closed Unexpectedly
I'm trying to connect to AWS MQTT3 via websockets with authentication from Cognito, but I'm getting Caused by: software.amazon.awssdk.crt.mqtt.MqttException: The connection was closed unexpectedly.. ...
0
votes
0
answers
230
views
MQTT Connection Error to AWS IOT Core With ESP32-S3
I made test code with mqtt communicate with AWS IOT in ESP-IDF.
I made sample handler and save root ca in global ca store.
and then I set the Mqtt Config.
I tried to Connect MQTT With AWS IOT Core ...
0
votes
1
answer
441
views
How can I add a timestamp to MQTT messages in AWS IoT Bridge or EMQX?
I have an AWS Greengrass device which is running two MQTT components:
aws.greengrass.clientdevices.mqtt.EMQX
aws.greengrass.clientdevices.mqtt.Bridge
I've got a hardware device which publishes MQTT ...
0
votes
0
answers
53
views
Having problems with multiprocessing Python - Processes aren't running
I'm having problems trying to finish a university project and hopefully someone can help. Since the project is quite big and the only thing that isn't working is the multiprocessing technique, I will ...
0
votes
1
answer
256
views
How to create AWS IoT thing using https call
There is API end point described in aws documentation, https://docs.aws.amazon.com/iot/latest/apireference/API_CreateThing.html
But can't make it work, which prefix should i use and how to provide my ...
0
votes
1
answer
565
views
Not able to ping the AWS IoT VPC interface endpoint via EC2 in same subnet
I am trying to create an AWS IoT VPC interface endpoint. I am using terraform.
Each AWS account comes with an IoT Core endpoint like this:
xxxxxxxxxxxxxx-ats.iot.us-east-1.amazonaws.com
They can be ...
0
votes
0
answers
174
views
Amazon IoT OTA update Signature verification failed
I inherited an ESP-32 firmware project based on AmazonFreeRTOS. I know how to build it but I'm not extremely familiar with this kind of programming.
The other developer never created a signing key ...
0
votes
1
answer
115
views
AWSIoT Access denied when trying to get object
I am trying to create an AWS IoT Job, I have followed the pre-requisites here.
The Lambda creating the OTA Job has the required permissions.
But when I get the details of that Job to see why it hasn't ...
1
vote
1
answer
129
views
AWS IoT Self-managed certificate signing with CreateCertificateFromCsr API
I have created a certificate provider for AWS IoT:
{
"certificateProviderName": "my-certificate-provider",
"certificateProviderArn": "arn:aws:iot:eu-west-1:...
1
vote
1
answer
216
views
How to publish to the same AWS IoT Thing topic from multiple endpoints?
I'm currently running a test on an IoT project which is utilizing AWS IOT Core service. I have an MQTT broker with a Thing set up to which I have connection policies defined and authentication access ...
0
votes
1
answer
233
views
Getting 500 internal server Errors, when I publish JSON payload using HTTP post in AWS API gateway
I am experiencing a problem while trying to publish a JSON Payload to IoT Core. I am getting a 500 internal server error. API Gateway appears to be configured correctly since it is reaching the Lambda ...
1
vote
0
answers
132
views
Spring-boot does not recognize my java class
I'm new to spring-boot and attempting to populate a property in a spring-boot XML with a function return value from a Java class but the class doesn't seem to be visible to the spring-boot loader. I'm ...
0
votes
1
answer
159
views
AWS IoT Rule - HTTP Destinations Authentication
I have an IoT project where device sends telemetry data to AWS IoT Core. And I used AWS IoT Core Rules to read data from topic and send it to my own webservice deployed in some other place. When I am ...
0
votes
1
answer
58
views
Query every X minutes in Dynamodb - How inefficient and costly it would be?
I have a device using AWS IOT that is saving the information on a Dynamodb table. It's not a lot of info, just water flow from my second house. My intention is to "turn on" a flag that will ...
1
vote
0
answers
91
views
Latest values in timestream for specific device
I am using Timestream to keep the MQTT messages coming to my AWS IoT broker. Messages are in UDMI format. Mostly I am keeping pointset messages, which are messages with current state of the device. ...
0
votes
1
answer
41
views
AWS IoT with Dynamodb or other solution
I'm building a water leak detector for the days I'm out of my house, using an ESP-32. It's already working fine using AWS IoT saving the "pulses" (water flow) to DynamoDb.
But now I'm ...
0
votes
0
answers
57
views
Multiple MQTT/ AWS shadow services on one device
Would it be considered bad design to have multiple MQTT / AWS services on one device. I am currently designing a system that has what can be considered multiple discrete functions / process's.
I am ...
0
votes
1
answer
294
views
Python: How to attach policy to AWS IoT thing?
I wrote Python script to create AWS IoT thing and policy. I attach policy to the IoT thing with the code as follows.
iot_client.attach_policy(policyName=policy_name, target=thing_arn)
I got the errors ...
1
vote
1
answer
318
views
Is there an AWS IOT SDK for Kotlin?
I seem to be unable to find the Kotlin SDK for AWS IOT.
I searched the internet and I can find Kotlin SDKs for other Amazon services, and AWS IOT code examples for Java and other languages, but there ...
0
votes
0
answers
224
views
AWS Things relation to MQTT topics
I have created several Things and security certificates in my AWS console. I can subscribe and post MQTT messages to XXXX-ats.iot.us-east-1.amazonaws.com:8883 without problems. But how to connect ...
0
votes
1
answer
257
views
Connecting to AWS MQTT broker using Cognito Identity Pool temporary credentials
I'm attempting to establish a connection to the IoT Core broker using temporary credentials from cognito identity pools (access key/secret key/session token) in Python. Unfortunately, my current ...
2
votes
0
answers
175
views
${credentials-iot:ThingName} causing AccessDeniedException when used in an IAM policy
I've followed https://docs.aws.amazon.com/iot/latest/developerguide/authorizing-direct-aws.html to set up the following resources:
A DynamoDB table with name H42318K04D
IAM role with name "...
5
votes
1
answer
3k
views
How do I publish a message to an IoT thing topic on AWS using HTTPS and Postman?
I would like to publish a message to an IoT thing topic on AWS using HTTPS and Postman.
EDIT: I have edited majority of the post to include a step-by-step process of the thing i created
I created a ...
0
votes
1
answer
109
views
Cant turn ON the AWS IoT security audit through CDK
I want to enable the AWS IoT security audit through a CDK stack but it is not working.
First I followed this documentation for the interfaceAuditCheckConfigurationProperty
and the following was the ...
2
votes
0
answers
394
views
AWS IoT SDK Device SDK for C#
I couldn't find an official AWS IoT Device SDK for C#/.NET (only c++, java, javascript and python), yet we need to build a client device application that connects to the AWS IoT and utilizes its ...
1
vote
0
answers
352
views
Error connecting to a AWS IoT Core websocket endpoint
I'm trying to do a minimal example of connecting and publishing to a topic using MQTT + Websocket + AWS IoT + paho.mqtt.golang and am running into issues. I'm roughly following this tutorial https://...