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

Problem wifi connection #1

Open
devr200 opened this issue Aug 12, 2019 · 2 comments
Open

Problem wifi connection #1

devr200 opened this issue Aug 12, 2019 · 2 comments

Comments

@devr200
Copy link

devr200 commented Aug 12, 2019

Hi, when i execute the code in react native project, i return this error "no wifi connection".

i don't understand how to pass the ssid of the wifi network to the start method.

This is my code:
let connected_wifi_password = "mypassword";
let broadcast_type = 1; // 1: broadcast; 0: multicast
RNEsptouch.startSmartConfig(
connected_wifi_password
, broadcast_type
).then((res) => {

        if (res.code == 200) {
            // ESPTouch success
            console.log(res)
            Alert.alert("ok " + res);
        } else {
            // ESPTouch failed
            console.info(res.msg)
            Alert.alert("error "+res.msg);
        }
    })

Thanks

@rich1111
Copy link
Owner

hi, you don't need to specify the ssid, the plugin module use the current wifi ssid you connected!

@lbyzju
Copy link

lbyzju commented Feb 22, 2023

have the same problem, "no wifi connection".

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