esp-google-iot icon indicating copy to clipboard operation
esp-google-iot copied to clipboard

smart_outlet_example.c line 317 need "\n" to get the printf to the terminal (CA-108)

Open bonmotwang opened this issue 4 years ago • 1 comments

line 317 printf("iotc_create_iotcore_jwt returned with error: %ul", state); software looked like stopped at this point because the thread will be killed the next line. I got lost for a while busy looking for where did the program go because it didn't print.

I had to change it to printf("iotc_create_iotcore_jwt returned with error: %u\n", state);

Then I realized that the error happened here.

bonmotwang avatar Dec 22 '20 04:12 bonmotwang

Hi @bonmotwang , Thanks for reporting the issue. The print statements have been replaced by ESP_LOGX() statements which add a newline character to the prints. The commit a81cf20a6de61bd78b781dfb5b2f6c4bf39c8541 solves this issue.

supreetd21 avatar Jan 18 '21 14:01 supreetd21