Skip to content
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

There is a compilation error in funtion String postedSSID() #6

Open
Omkarbelamkar opened this issue Apr 30, 2023 · 3 comments
Open

Comments

@Omkarbelamkar
Copy link

Omkarbelamkar commented Apr 30, 2023

This error occurred while compiling in Arduino IDE

C:\Users\HP\AppData\Local\Temp\.arduinoIDE-unsaved202341-25240-19sjolq.b2lc\sketch_may1a\sketch_may1a.ino: In function 'String postedSSID()':
C:\Users\HP\AppData\Local\Temp\.arduinoIDE-unsaved202341-25240-19sjolq.b2lc\sketch_may1a\sketch_may1a.ino:124:1: error: no return statement in function returning non-void [-Werror=return-type]
  124 | }
      | ^
cc1plus.exe: some warnings being treated as errors

exit status 1

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

Screenshot 2023-05-01 005357

@Alpha-1729 Alpha-1729 pinned this issue Jun 24, 2023
@gabhanedigvijay
Copy link

i also had same problem
is there any solution

@nocerainfosec
Copy link

nocerainfosec commented Jul 26, 2023

To fix this issue add the following line to your code, right after "WiFi.softAP(postedSSID)":

return newSSID;

Check the screenshot below:
image

@Omkarbelamkar
Copy link
Author

To fix this issue add the following line to your code, right after "WiFi.softAP(postedSSID)":

return newSSID;

Check the screenshot below: image

Thanks bro it worked

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

No branches or pull requests

3 participants