Skip to content

add esp32 smartconfig - #4404

Closed
Lupino wants to merge 9 commits into
micropython:masterfrom
Lupino:smartconfig
Closed

Lupino wants to merge 9 commits into
micropython:masterfrom
Lupino:smartconfig

Conversation

@Lupino

@Lupino Lupino commented Jan 9, 2019 •

Copy link
Copy Markdown

#3427

import smartconfig
import network
wlan = network.WLAN(network.STA_IF)
if not wlan.active():
    wlan.active(True)

smartconfig.set_type(smartconfig.ESPTOUCH)
smartconfig.start()
while smartconfig.status() != smartconfig.SC_STATUS_LINK_OVER:
    pass
smartconfig.stop()

print(smartconfig.get_ssid())
print(smartconfig.get_password())
print(smartconfig.get_phoneip())

@Lupino Lupino changed the title add esp32 modsmartconfig add esp32 smartconfig Jan 9, 2019
@Lupino
Lupino force-pushed the smartconfig branch 2 times, most recently from f3b8918 to ad49bae Compare January 19, 2019 01:00
@Lupino
Lupino force-pushed the smartconfig branch 3 times, most recently from d2d8aa3 to 505a741 Compare January 29, 2019 02:26
@Lupino
Lupino force-pushed the smartconfig branch 2 times, most recently from e4f976a to f0ad63f Compare February 16, 2019 05:26
@dpgeorge

Copy link
Copy Markdown
Member

Thanks for the contribution, and sorry for the very late reply. This looks like a nice feature to add, are you still interested in it?

@Meekdai

Meekdai commented Jul 1, 2021 •

Copy link
Copy Markdown

smartconfig is a good feature, I am very interested in it, and would like to test it.

@Mrszcup

Mrszcup commented Jul 1, 2021

Copy link
Copy Markdown

哦

Thanks for the contribution, and sorry for the very late reply. This looks like a nice feature to add, are you still interested in it?

We need him very much, which is a necessary basic general ability

@majoson-chen

Copy link
Copy Markdown

when can i use it?

@omarbenhamid

Copy link
Copy Markdown

@dpgeorge I find it interesting also, I merged Lupino's branch in to my "custom built" fork and seems to work well. What would need to be done to get this merged in main micropython ? I can spend some time on it.

@walklinewang

walklinewang commented Nov 28, 2021 •

Copy link
Copy Markdown

Here is the espressif idf smartconfig sample, I was tested on ESP32(idf 5.0-dev) and ESP32C3(idf 4.3.1), however ESP32 cannot receive SC_EVENT_SEND_ACK_DONE event, it means that the smartconfig initiator cannot exit event loop until timedout, but it still can get ssid and password correctly, is there anyone can optimize my code? Beacuse I'm already tried my best on c module, and I'm not good at c or cpp.....

@projectgus

Copy link
Copy Markdown
Contributor

It seems like @Lupino is no longer working on this PR (no update since April 2019, and no reply to Damien's question from 2021.)

I'm going to close this now, but if anyone wants to take @Lupino's branch, rebase it and test it, add some documentation, and then open a new PR for review then please do this - feel free to both link back to this PR and also mention me in a comment for a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants