MeterLogger
smartconfig.h
Go to the documentation of this file.
1 /*
2  * ESPRSSIF MIT License
3  *
4  * Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
5  *
6  * Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
7  * it is free of charge, to any person obtaining a copy of this software and associated
8  * documentation files (the "Software"), to deal in the Software without restriction, including
9  * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  * and/or sell copies of the Software, and to permit persons to whom the Software is furnished
11  * to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all copies or
14  * substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22  *
23  */
24 
25 #ifndef __SMARTCONFIG_H__
26 #define __SMARTCONFIG_H__
27 
28 typedef enum {
34 } sc_status;
35 
36 typedef enum {
40 } sc_type;
41 
42 typedef void (*sc_callback_t)(sc_status status, void *pdata);
43 
44 const char *smartconfig_get_version(void);
45 bool smartconfig_start(sc_callback_t cb, ...);
46 bool smartconfig_stop(void);
47 bool esptouch_set_timeout(uint8 time_s); //15s~255s, offset:45s
48 bool smartconfig_set_type(sc_type type);
49 
50 #endif
bool smartconfig_stop(void)
bool smartconfig_start(sc_callback_t cb,...)
sc_status
Definition: smartconfig.h:28
unsigned char uint8
Definition: c_types.h:45
const char * smartconfig_get_version(void)
bool esptouch_set_timeout(uint8 time_s)
void(* sc_callback_t)(sc_status status, void *pdata)
Definition: smartconfig.h:42
sc_type
Definition: smartconfig.h:36
bool smartconfig_set_type(sc_type type)