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

Update for Smart Config #1139

Merged
merged 1 commit into from
Jan 8, 2019
Merged

Update for Smart Config #1139

merged 1 commit into from
Jan 8, 2019

Conversation

AdrianSoundy
Copy link
Member

Description

The enables the Smart config for ESP32. This allows the WiFI SSID & Password to be configured from a mobile phone.

When the nanoCLR starts and there is no SSID setup for the Wireless Station the nanoCLR will now start the smart config task. This task watches for special wifi packets which allows the SSID & Password to be configured, connected and stored.

A managed code application can monitor the state/IP address of the wireless station to see if it has been configured/connected before starting.

Motivation and Context

To allow the SSID to be provisioned on site without having to use Visual studio

How Has This Been Tested?

  • Erased flash & load latest firmware
  • From phone install Smart config app ( for example, Android :- "Esp8266 Smartconfig" ). The are others - that work.
  • Connect phone to AP you want to configure on device.
  • Run Smart config app
  • Enter Password and configure device. ("Esp8266 Smartconfig" press confirm)
  • Confirm device configured

When configured the device will connect to AP and shutdown Smart config.

Further testing was done to confirm Network functions were working (Dgrams and Stream sockets )

To restart Smart config you need to either reload firmware or from managed code/VS extension reset the SSID back to nothing and reset device.

No testing was done with STM32 targets so should be done as some common code was changed.

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Signed-off-by: adriansoundy adriansoundy@gmail.com

@nfbot
Copy link
Member

nfbot commented Jan 8, 2019

Hi @AdrianSoundy,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

@josesimoes josesimoes added Type: enhancement Series: ESP32 Everything related specifically with ESP32 series targets labels Jan 8, 2019
Copy link
Member

@josesimoes josesimoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a very nice improvement! 👏

@josesimoes josesimoes merged commit 8c59faf into nanoframework:develop Jan 8, 2019
@AdrianSoundy AdrianSoundy deleted the Esp32-smart-config branch January 9, 2019 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Series: ESP32 Everything related specifically with ESP32 series targets Type: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants