Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

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

Open
bonmotwang opened this issue Dec 22, 2020 · 1 comment

Comments

@bonmotwang
Copy link

bonmotwang commented Dec 22, 2020

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.

@github-actions github-actions bot changed the title smart_outlet_example.c line 317 need "\n" to get the printf to the terminal smart_outlet_example.c line 317 need "\n" to get the printf to the terminal (CA-108) Dec 22, 2020
@supreetd21
Copy link
Collaborator

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 a81cf20 solves this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants