Connection timeout FreeRTOS

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

cross mob
ChTa_4684556
Level 1
Level 1
5 replies posted First question asked First reply posted

Hello I'm a begineer in this. I have tried multiple settings but it still won't run properly. The Cypress still treating uint32_t as 'type cannot be resolved'. Although the code does run but still cant run the demo well. Any help please?

WLAN Firmware    : wl0: Sep  5 2019 23:24:33 version 7.45.98.92 (r722362 CY) FWID 01-f7128517

WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2019-09-05 23:10:00

WHD VERSION      : v1.70.0 : v1.70.0 : GCC 7.2 : 2019-12-02 04:14:53 -0600

.1 5038 [Tmr Svc] Wi-Fi Connected to AP. Creating tasks which use network...

2 5038 [Tmr Svc] IP Address acquired 172.24.172.118

3 6733 [Tmr Svc] Write certificate...

4 7275 [iot_threa] [INFO ][DEMO][lu] ---------STARTING DEMO---------

5 7277 [iot_threa] [INFO ][INIT][lu] SDK successfully initialized.

.6 12027 [iot_threa] [INFO ][DEMO][lu] Successfully initialized the demo. Network type for the demo:7 12027 [iot_threa] [INFO ][MQTT][lu] MQTT library successfully initialized.

8 12027 [iot_threa] [INFO ][DEMO][lu] MQTT demo client identifier is Cypress (length 7).

.9 17097 [iot_threa] [INFO ][MQTT][lu] Establishing new MQTT connection.

10 17099 [iot_threa] [INFO ][MQTT][lu] Anonymous metrics (SDK language, SDK version) will be provid11 17100 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, CONNECT operation 0x800c168) Wai.12 22100 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, CONNECT operation 0x800c168) Wai13 22100 [iot_threa] [ERROR][MQTT][lu] Failed to establish new MQTT connection, error TIMEOUT.

14 22101 [iot_threa] [INFO ][MQTT][lu] Network connection closed on error.

15 22401 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) Network connection destroyed.

16 22401 [iot_threa] [ERROR][DEMO][lu] MQTT CONNECT returned error TIMEOUT.

17 22401 [iot_threa] [INFO ][MQTT][lu] MQTT library cleanup done.

18 22401 [iot_threa] [ERROR][DEMO][lu] Error running demo.

19 22401 [iot_threa] [INFO ][INIT][lu] SDK cleanup done.

20 22401 [iot_threa] [INFO ][DEMO][lu] -------DEMO FINISHED-------

0 Likes
1 Solution

Hi ChTa_4684556​,

Can you let me know from where you have downloaded the aws_demo project? Please confirm that you have downloaded the demo project from the Cypress git repo.

You can refer to Lesson 4 AFR Hello World of Alan Hawse's Amazon FreeRTOS 101 video tutorials for setting up things in the AWS side.

Things to be changed in the aws_demos project after importing the project -

  • #define clientcredentialWIFI_SSID
  • #define clientcredentialWIFI_PASSWORD
  • #define clientcredentialWIFI_SECURITY
  • #define clientcredentialMQTT_BROKER_ENDPOINT
  • #define clientcredentialIOT_THING_NAME
  • aws_clientcredential_keys.h (CertificateConfigurator can be used to generate this file)

Here is my log -

pastedImage_4.png

Also, please let me know how you have imported the project into the ModusToolbox workspace.

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
13 Replies
LiDo_2439176
Level 5
Level 5
First question asked 50 replies posted 50 sign-ins

Hello chta_4684556​,

Have you activated the certificate attached to your thing ?

Regards,

Liviu

0 Likes

Yes, in fact I have created both cerfiticate and activated but it returned same result.Untitled.png

0 Likes

AWS IOT Console did register some connection from the thing

Untitled.png

0 Likes

Did you enter * in the Resource ARN field from Policies ?

0 Likes

Yes, the star, * behind the <endpoint> is there. If I remove it, then it won't save.

Is it required that policy's name to be same as thing's name?

EDIT: This is the policy configuration with account id removed partially

{

  "Version": "2012-10-17",

  "Statement": [

  {

  "Effect": "Allow",

  "Action": "iot:Connect",

  "Resource": "arn:aws:iot:<us-east-2>:<746525>:*"

  },

  {

  "Effect": "Allow",

  "Action": "iot:Publish",

  "Resource": "arn:aws:iot:<us-east-2>:<746525>:*"

  },

  {

  "Effect": "Allow",

  "Action": "iot:Subscribe",

  "Resource": "arn:aws:iot:<us-east-2>:<746525>:*"

  },

  {

  "Effect": "Allow",

  "Action": "iot:Receive",

  "Resource": "arn:aws:iot:<us-east-2>:<746525>:*"

  }

  ]

}

0 Likes

Update, tried creating a policy with the name same as thing's. Still the same error.

EDIT:

WLAN Firmware    : wl0: Sep  5 2019 23:24:33 version 7.45.98.92 (r722362 CY) FWID 01-f7128517

WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2019-09-05 23:10                                                                                     :00

WHD VERSION      : v1.70.0 : v1.70.0 : GCC 7.2 : 2019-12-02 04:14:53 -0600

1 3510 [Tmr Svc] Wi-Fi Connected to AP. Creating tasks which use network...

2 3510 [Tmr Svc] IP Address acquired 172.24.172.118

3 5219 [Tmr Svc] Write certificate...

4 5761 [iot_threa] [INFO ][DEMO][lu] ---------STARTING DEMO---------

.5 5763 [iot_threa] [INFO ][INIT][lu] SDK successfully initialized.

6 10531 [iot_threa] [INFO ][DEMO][lu] Successfully initialized the demo. Network type for the demo:7 105                                                                                     31 [iot_threa] [INFO ][MQTT][lu] MQTT library successfully initialized.

8 10531 [iot_threa] [INFO ][DEMO][lu] MQTT demo client identifier is Cypress (length 7).

.9 15578 [iot_threa] [INFO ][MQTT][lu] Establishing new MQTT connection.

10 15580 [iot_threa] [INFO ][MQTT][lu] Anonymous metrics (SDK language, SDK version) will be provid11 15                                                                                     581 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012708, CONNECT operation 0x8012820) Wai.12 20581                                                                                      [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012708, CONNECT operation 0x8012820) Wai13 20581 [iot_                                                                                     threa] [ERROR][MQTT][lu] Failed to establish new MQTT connection, error TIMEOUT.

14 20582 [iot_threa] [INFO ][MQTT][lu] Network connection closed on error.

.15 20882 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012708) Network connection destroyed.

16 20882 [iot_threa] [ERROR][DEMO][lu] MQTT CONNECT returned error TIMEOUT.

17 20882 [iot_threa] [INFO ][MQTT][lu] MQTT library cleanup done.

18 20882 [iot_threa] [ERROR][DEMO][lu] Error running demo.

19 20882 [iot_threa] [INFO ][INIT][lu] SDK cleanup done.

20 20882 [iot_threa] [INFO ][DEMO][lu] -------DEMO FINISHED-------

0 Likes

Hi ChTa_4684556​,

Can you let me know from where you have downloaded the aws_demo project? Please confirm that you have downloaded the demo project from the Cypress git repo.

You can refer to Lesson 4 AFR Hello World of Alan Hawse's Amazon FreeRTOS 101 video tutorials for setting up things in the AWS side.

Things to be changed in the aws_demos project after importing the project -

  • #define clientcredentialWIFI_SSID
  • #define clientcredentialWIFI_PASSWORD
  • #define clientcredentialWIFI_SECURITY
  • #define clientcredentialMQTT_BROKER_ENDPOINT
  • #define clientcredentialIOT_THING_NAME
  • aws_clientcredential_keys.h (CertificateConfigurator can be used to generate this file)

Here is my log -

pastedImage_4.png

Also, please let me know how you have imported the project into the ModusToolbox workspace.

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B
0 Likes

Hello Mr Rakshith, thanks for responding to my issue.

I have been following this guide for setting up: https://www.element14.com/community/community/design-challenges/connected-cloud-challenge-with-cypre...

The way I import to ModusToolbox, is by Import existing project through folder, I import all 3 folders under /projects/<board-name>

I have edited the required files through notepad++ in /include folder

0 Likes

Hi ChTa_4684556​,

Thank you for your response.

The way I import to ModusToolbox, is by Import existing project through folder, I import all 3 folders under /projects/<board-name>

I think you meant the following directory - <afr_directory>/projects/cypress/<board_name>/mtb/aws_demos/

Also can you please let me know what you mean by 'all 3 folders'. I see that there is only one example - aws_demos in CY8CKIT_062_WIFI_BT folder and two (aws_demos and ota) in CY8CPROTO_062_4343W folder.

I have edited the required files through notepad++ in /include folder

Again I think you are talking about the <afr_directory>/demos/include folder.

Yes, the star, * behind the <endpoint> is there. If I remove it, then it won't save.

Can you replace the Resource ARN with just * ? If you are editing using the json file then replace "Resource": "arn:aws:iot:<us-east-2>:<746525>:*" with just "Resource": "*"

Please let me know if the video tutorials in my previous comment or the above step helped with your issue.

If not please attach an archive of the entire <afr_directory>. I will try it out at my end and try to figure out the issue.

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B

Hello Mr Rakshith, thanks for your response

I think you meant the following directory - <afr_directory>/projects/cypress/<board_name>/mtb/aws_demos/

Also can you please let me know what you mean by 'all 3 folders'. I see that there is only one example - aws_demos in CY8CKIT_062_WIFI_BT folder and two (aws_demos and ota) in CY8CPROTO_062_4343W folder.

Sorry, my bad. I do import from <afr_directory>/projects/cypress/CY8CPROTO_062_4343W/mtb/ and imported aws_demos, CY8CPROTO_062_4343W and ota. The same error occured when I imported from <afr_directory>/projects/cypress/CY8CPROTO_062_4343W/mtb/aws_demos/, with only aws_demos imported.

I have found the problem, thanks to the video you posted. It turns out I forgot to attach a policy to the thing which in turn creates error. Thank you very much for your help!

WLAN Firmware    : wl0: Sep  5 2019 23:24:33 version 7.45.98.92 (r722362 CY) FWID 01-f71                                                                                                     28517

WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation:                                                                                                      2019-09-05 23:10:00

WHD VERSION      : v1.70.0 : v1.70.0 : GCC 7.2 : 2019-12-02 04:14:53 -0600

.1 5026 [Tmr Svc] Wi-Fi Connected to AP. Creating tasks which use network...

2 5026 [Tmr Svc] IP Address acquired 172.24.172.118

3 6745 [Tmr Svc] Write certificate...

4 7573 [iot_threa] [INFO ][DEMO][lu] ---------STARTING DEMO---------

5 7575 [iot_threa] [INFO ][INIT][lu] SDK successfully initialized.

.6 11401 [iot_threa] [INFO ][DEMO][lu] Successfully initialized the demo. Network type f                                                                                                     or the demo:7 11401 [iot_threa] [INFO ][MQTT][lu] MQTT library successfully initialized.

8 11401 [iot_threa] [INFO ][DEMO][lu] MQTT demo client identifier is Cypress (length 7).

.9 16009 [iot_threa] [INFO ][MQTT][lu] Establishing new MQTT connection.

10 16011 [iot_threa] [INFO ][MQTT][lu] Anonymous metrics (SDK language, SDK version) wil                                                                                                     l be provid11 16012 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, CONNECT op                                                                                                     eration 0x800c168) Wai12 16296 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778,                                                                                                      CONNECT operation 0x800c168) Wai13 16296 [iot_threa] [INFO ][MQTT][lu] New MQTT connect                                                                                                     ion 0x800d7d4 established.

14 16298 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) SUBSCRIBE operation s                                                                                                     cheduled.

15 16298 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, SUBSCRIBE operation 0                                                                                                     x800c168) W16 16581 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, SUBSCRIBE                                                                                                      operation 0x800c168) W17 16581 [iot_threa] [INFO ][DEMO][lu] All demo topic filter subsc                                                                                                     riptions accepted.

18 16581 [iot_threa] [INFO ][DEMO][lu] Publishing messages 0 to 1.

19 16583 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

20 16585 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

21 16585 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

22 16834 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 0 successfully sent.

23 16860 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde24 16861 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

25 16861 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 0 will be sent                                                                                                     .

26 17076 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 1 successfully sent.

27 17106 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde28 17106 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

29 17106 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 1 will be sent                                                                                                     .

30 17108 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

31 17108 [iot_threa] [INFO ][DEMO][lu] Publishing messages 2 to 3.

32 17108 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

33 17110 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

34 17110 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

35 17616 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 2 successfully sent.

36 17617 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 3 successfully sent.

37 17618 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde38 17618 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

39 17618 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 3 will be sent                                                                                                     .

40 17620 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde41 17620 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

42 17620 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 2 will be sent                                                                                                     .

43 17621 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

44 17621 [iot_threa] [INFO ][DEMO][lu] Publishing messages 4 to 5.

45 17621 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

46 17623 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

47 17623 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

48 18153 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 5 successfully sent.

49 18155 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 4 successfully sent.

50 18179 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde51 18179 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

52 18179 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 5 will be sent                                                                                                     .

53 18183 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde54 18183 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

55 18183 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 4 will be sent                                                                                                     .

56 18185 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

57 18185 [iot_threa] [INFO ][DEMO][lu] Publishing messages 6 to 7.

58 18186 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

59 18187 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

60 18187 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

61 18716 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 7 successfully sent.

62 18718 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 6 successfully sent.

63 18743 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde64 18744 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

65 18744 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 7 will be sent                                                                                                     .

66 18745 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde67 18745 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

68 18745 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 6 will be sent                                                                                                     .

69 18747 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

70 18747 [iot_threa] [INFO ][DEMO][lu] Publishing messages 8 to 9.

71 18747 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

72 18749 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

73 18749 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

74 19280 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 8 successfully sent.

75 19282 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 9 successfully sent.

76 19307 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde77 19308 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

78 19308 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 8 will be sent                                                                                                     .

79 19309 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde80 19309 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

81 19309 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 9 will be sent                                                                                                     .

82 19311 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

83 19311 [iot_threa] [INFO ][DEMO][lu] Publishing messages 10 to 11.

84 19311 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

85 19313 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

86 19313 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

87 19841 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 10 successfully sent.

88 19842 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 11 successfully sent.

89 19868 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde90 19869 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

91 19869 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 10 will be sen                                                                                                     t.

92 19870 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotde93 19870 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      0x8012778) MQTT PUBLISH operation queued.

94 19870 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 11 will be sen                                                                                                     t.

95 19872 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

96 19872 [iot_threa] [INFO ][DEMO][lu] Publishing messages 12 to 13.

97 19872 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

98 19874 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operatio                                                                                                     n queued.

99 19874 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

.100 20400 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 12 successfully sent.

101 20401 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 13 successfully sent.

102 20427 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotd103 20428 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      104 20428 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 12 will be se                                                                                                     nt.

105 20429 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotd106 20429 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      107 20429 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 13 will be se                                                                                                     nt.

108 20431 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

109 20431 [iot_threa] [INFO ][DEMO][lu] Publishing messages 14 to 15.

110 20431 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operati                                                                                                     111 20433 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operati                                                                                                     112 20433 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

113 20962 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 15 successfully sent.

114 20963 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 14 successfully sent.

115 20988 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotd116 20988 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      117 20988 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 15 will be se                                                                                                     nt.

118 20990 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotd119 20990 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      120 20990 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 14 will be se                                                                                                     nt.

121 20992 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

122 20992 [iot_threa] [INFO ][DEMO][lu] Publishing messages 16 to 17.

123 20992 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operati                                                                                                     124 20994 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operati                                                                                                     125 20994 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

126 21525 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 16 successfully sent.

127 21525 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 17 successfully sent.

128 21550 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotd129 21550 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      130 21550 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 16 will be se                                                                                                     nt.

131 21552 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotd132 21552 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      133 21552 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 17 will be se                                                                                                     nt.

134 21554 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

135 21554 [iot_threa] [INFO ][DEMO][lu] Publishing messages 18 to 19.

136 21554 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operati                                                                                                     137 21556 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) MQTT PUBLISH operati                                                                                                     138 21556 [iot_threa] [INFO ][DEMO][lu] Waiting for 2 publishes to be received.

139 22081 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 18 successfully sent.

140 22083 [iot_threa] [INFO ][DEMO][lu] MQTT PUBLISH 19 successfully sent.

141 22108 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotd142 22108 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      143 22108 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 18 will be se                                                                                                     nt.

144 22110 [iot_threa] [INFO ][DEMO][lu] Incoming PUBLISH received:

Subscription topic filter: iotd145 22110 [iot_threa] [INFO ][MQTT][lu] (MQTT connection                                                                                                      146 22110 [iot_threa] [INFO ][DEMO][lu] Acknowledgment message for PUBLISH 19 will be se                                                                                                     nt.

147 22112 [iot_threa] [INFO ][DEMO][lu] 2 publishes received.

148 22112 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) UNSUBSCRIBE operatio                                                                                                     n scheduled149 22112 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, UNSUBSCRI                                                                                                     BE operation 0x800c168150 22662 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778                                                                                                     , UNSUBSCRIBE operation 0x800c168151 22663 [iot_threa] [INFO ][MQTT][lu] (MQTT connectio                                                                                                     n 0x8012778) Disconnecting connection.

152 22663 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, DISCONNECT operation                                                                                                      0x800c168)153 22663 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778, DISCONNEC                                                                                                     T operation 0x800c168)154 22665 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778                                                                                                     ) Connection disconnected.

155 22668 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) Network connection c                                                                                                     losed.

156 22968 [iot_threa] [INFO ][MQTT][lu] (MQTT connection 0x8012778) Network connection d                                                                                                     estroyed.

157 22968 [iot_threa] [INFO ][MQTT][lu] MQTT library cleanup done.

158 22968 [iot_threa] [INFO ][DEMO][lu] Demo completed successfully.

159 22969 [iot_threa] [INFO ][INIT][lu] SDK cleanup done.

160 22969 [iot_threa] [INFO ][DEMO][lu] -------DEMO FINISHED-------

0 Likes

Hi ChTa_4684556,

Glad your issue is resolved

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B
0 Likes
LiDo_2439176
Level 5
Level 5
First question asked 50 replies posted 50 sign-ins

Regarding uint32_t as 'type cannot be resolved' problem. Try Project->C/C++ Index->Rebuild.

0 Likes

Yes, I have tried this but it doesn't work. Restarting the computer seems to do the job. Thanks

0 Likes