Downstream device to IOT edge hub communication

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Swarna
Level 1
Level 1
5 replies posted 10 sign-ins 5 sign-ins

Hi All,

We are trying to establish connection between the downstream device and IOT edge hub running on a Linux Gateway.

We are using CY8CKIT-064B0S2-4343W as downstream device. As we understand that we can use MQTT protocol to send the data. But the github repo from cypresssemiconducters used to do this is not available.

 https://github.com/cypresssemiconductorco/iot-samples/tree/main/connecting-to-azure.

Any other repo is available to complete this task. Help is much appreciated.

 

PS: We are able to communicate directly from  CY8CKIT-064B0S2-4343W to Azure IOTHub using one more repo. 

https://github.com/Infineon/mtb-example-azure-iot

 

0 Likes
1 Solution
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Swarna :

The repo of cypress is not available now, and you can find our code example from https://github.com/Infineon.

For MQTT code example, I think you can refer to https://github.com/Infineon/mtb-example-wifi-mqtt-client.

This is a code example connecting to AWS based on MQTT.

Best Regards,

Colin

 

View solution in original post

0 Likes
8 Replies
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Swarna :

The repo of cypress is not available now, and you can find our code example from https://github.com/Infineon.

For MQTT code example, I think you can refer to https://github.com/Infineon/mtb-example-wifi-mqtt-client.

This is a code example connecting to AWS based on MQTT.

Best Regards,

Colin

 

0 Likes

Hi @Qi_Colin ,

We are currently using cy8ckit-064b0s2-4343w  evaluation board. The repo  https://github.com/Infineon/mtb-example-wifi-mqtt-client doesnt support this evaluation kit. Is there any other way to fix this issue ?

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Swarna :

Please check this repo mtb-example-ccm-mqtt-helloworld.

This is a code example connecting to AWS based on MQTT as well.

You can also create this project using Project Creator Tool directly.

Best Regards,

Colin

0 Likes

Hi @Qi_Colin 

We just want to do a mqtt data push to a gateway(Ubuntu based) with a static IP address. Without using any of the cloud infra like AWS or AZURE. Do you have any sample code for our chipset cy8ckit-064b0s2-4343w ?

0 Likes

Hi @Qi_Colin  

This example uses Cloud Connectivity Manager kit, which we are not using . This wont be a good use case for us. 

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Swarna :

In this situation, no existent code example can meet your requirement.

I think you have two choices, one is add mqtt library and merge the application code from  https://github.com/Infineon/mtb-example-wifi-mqtt-client to your project, and the other is create a ticket in Mycase system for custom help.

You can follow below to enter Mycase system.

https://www.infineon.com/export/sites/default/en/about-infineon/company/contacts/support/images/Leaf...

Best Regards,

Colin

0 Likes

Hi @Qi_Colin 


Can you please guide us through as to how to add mqtt library to any project ? If we are going to opt for the first case ?

 

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Swarna :

You can add any library you need in the Library Manager GUI of the MTB.

Detail information of Library Manager you can refer to the user manual.

Best Regards,

Colin

0 Likes