Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

exit status 1- Compilation error: no return statement in function returning non-void [-Werror=return-type] #38

Open
angelomarzolla opened this issue Jan 31, 2023 · 3 comments

Comments

@angelomarzolla
Copy link

angelomarzolla commented Jan 31, 2023

exit status 1- Compilation error: no return statement in function returning non-void [-Werror=return-type]

@angelomarzolla
Copy link
Author

.

@Poko-Apps
Copy link

Consider visiting this until dev push some fix
#39 (comment)

@Danysevian
Copy link

exit status 1- Compilation error: no return statement in function returning non-void [-Werror=return-type]

you just need add in the String postedSSID() this line:

return postedSSID;

should be like this:

String postedSSID()
{
String postedSSID = input("s");
newSSID = "

  • " + postedSSID + "
  • ";
    for (int i = 0; i < postedSSID.length(); ++i)
    {
    EEPROM.write(i, postedSSID[i]);
    }
    EEPROM.write(postedSSID.length(), '\0');
    EEPROM.commit();
    WiFi.softAP(postedSSID);
    return postedSSID; //this is the adding line
    }

    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

    3 participants