-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.add smartconfig support;
- Loading branch information
Espressif Systems
committed
May 4, 2015
1 parent
ec75c85
commit 43585fa
Showing
4 changed files
with
71 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,40 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Espressif Systems | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
ESPRSSIF MIT License | ||
|
||
Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> | ||
|
||
Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case, | ||
it is free of charge, to any person obtaining a copy of this software and associated | ||
documentation files (the ��Software��), to deal in the Software without restriction, | ||
including without limitation the rights to use, copy, modify, merge, publish, distribute, | ||
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software | ||
is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or | ||
substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED ��AS IS��, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE | ||
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
DEALINGS IN THE SOFTWARE. | ||
|
||
|
||
���� MIT ����֤ | ||
|
||
��Ȩ (c) 2015 <������Ϣ�Ƽ����Ϻ�������˾> | ||
|
||
������֤��Ȩ������������Ϣ�Ƽ� ESP8266 ��Ʒ��Ӧ�ÿ������ڴ�����£�������֤�����Ȩ�κλ�ø� | ||
������������ĵ���ͳ��Ϊ�������������������Ƶؾ�Ӫ�����������������Ƶ�ʹ�á����ơ��ġ��ϲ��� | ||
���淢�С�ɢ��������Ȩ������������������������Ȩ��������Ȩ����������ЩȨ����ͬʱ����������� | ||
�������� | ||
|
||
�����������������и����ж�����������ϵİ�Ȩ��������Ȩ������ | ||
|
||
�������������������ṩ��û���κ���ȷ���ĵ������������������ڹ��������ԡ��ʺ�ijһ�ض���; | ||
�ͷ���Ȩ�ı�֤�����ߺͰ�Ȩ���������κ�����¾�����������������ʹ��������Ժ�ͬ��ʽ��������Ȩ | ||
��������ʽ������κ����⡢���������θ��� | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,7 @@ | |
|
||
#include "esp8266/esp8266.h" | ||
|
||
#include "smartconfig.h" | ||
#include "spi_flash.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (C) 2015 -2018 Espressif System | ||
* | ||
*/ | ||
|
||
#ifndef __SMARTCONFIG_H__ | ||
#define __SMARTCONFIG_H__ | ||
|
||
typedef void (*sc_callback_t)(void *data); | ||
|
||
typedef enum { | ||
SC_STATUS_WAIT = 0, | ||
SC_STATUS_FIND_CHANNEL, | ||
SC_STATUS_GETTING_SSID_PSWD, | ||
SC_STATUS_GOT_SSID_PSWD, | ||
SC_STATUS_LINK, | ||
SC_STATUS_LINK_OVER, | ||
} sc_status; | ||
|
||
typedef enum { | ||
SC_TYPE_ESPTOUCH = 0, | ||
SC_TYPE_AIRKISS, | ||
} sc_type; | ||
|
||
sc_status smartconfig_get_status(void); | ||
const char *smartconfig_get_version(void); | ||
bool smartconfig_start(sc_type type, sc_callback_t cb, ...); | ||
bool smartconfig_stop(void); | ||
|
||
#endif |
Binary file not shown.