geschema
geschema

Reputation: 2494

Publish to AWS IoT topic from C#

Can I use C# to publish a JSON object to an AWS IoT topic without using the official SDK? Basically, I'd like to replicate what I can do from Postman, i.e. send POST/PUT/GET requests to AWS IoT URLs.

Ideally, I'd like to use the HTTP(S) protocol instead of MQTT for simplicity.

Upvotes: 0

Views: 2199

Answers (1)

Dalton Cézane
Dalton Cézane

Reputation: 3782

Yes, you can. You will need only some C# library that implements one of the AWS IoT available protocols, such MQTT. In the first semester of 2018, I tested the AWS IoT through a basic application in Python, using the publish and subscribe methods, publishing some data and receiving these data through notifications. You can take a look here, in this link. I used Paho MQTT, which is an MQTT client library that enable applications to connect to an MQTT broker, publish data and subscribe to topics, receiving data through notifications.

I think you can try M2Mqtt in your C# application:

Upvotes: 1

Related Questions