Skip to content

Any 'read' function always returns '1' or 'true' #261

Answered by mobizt
paulwrath1223 asked this question in Q&A
Discussion options

You must be logged in to vote

You should read the document and the examples showed how to use the library correctly.

Returning the value from cloud related function is a bad choice and API design as it may fail in between due to many possibilities, the undesired and unknown value may return.

We should take some reference object to store the operating result to the function to prevent setting undesired value to some variable and it can be reused such as session that keep in that object.

void loop()
{
//Flash string (PROGMEM and (FPSTR), String,, String C/C++ string, const char, char array, string literal are supported
//in …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paulwrath1223
Comment options

Answer selected by mobizt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants