-
Notifications
You must be signed in to change notification settings - Fork 82
[CM-474] Notify user if thing id is wrong / thing does not exist #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0a76682
to
479518d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use the same format for Serial output?
please replace Serial.println(...)
with debugMessage("ERROR - Please verify your THING ID", 0)
.
this will also help in setting a custom Serial port (or Stream) to output messages to :)
We can of course do this - one thing though: I image the debug messages to be removed from the code at some point in time - this message should always be displayed. What's your thoughts on this? |
We have other messages which are as important, such as the ones related to network hardware or loss of connection. |
Honestly I've got no better idea at this point. I'd feel better though if we coud assign constants to the numerical values used for signifying the debug message level so its better understandable what is important and what is not, e.g.
|
dae4c02
to
2326c64
Compare
I've rebased the branch on top of the current master and am therefore ready to merge 😉 |
Well done, @lxrobotics |
Increase version number
2326c64
to
d41cee8
Compare
Device will stay in mode
IOT_STATUS_CLOUD_CONNECTING
and display an error message for the user to inform him about the probable cause of the error.