ESPRSSIF MIT License
Copyright © 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 许可证
版权 © 2015 <乐鑫信息科技（上海）有限公司>
该许可证授权仅限于乐鑫信息科技 ESP8266 产品的应用开发。在此情况下，该许可证免费授权任何获得该软件及其相关文档（统称为“软件”）的人无限制地经营该软件，包括无限制 的使用、复制、修改、合并、出版发行、散布、再授权、及贩售软件及软件副本的权利。被授权人在享受这些权利的同时，需服从下面的条件：
IOT_Espressif_Android source code is used to control ESP8266 device by
Android pad or phone. It support local and online. More info about how
to use the Android apk, please follow the step:
install the apk by source code
register an espressif account or skip ( register automatically )
tap the "question mark" button on the top right corner,
it will tell you how to use it step by step
tap the "setting" button at the bottom, you could set your own
preference and see change logs.
Esptouch Demo version is v0.2.1
( The indepedent Esptouch Demo, please refer to
How to use python and log4j to turn on/off log
2.1 cd PROJECT_DIR/python
PROJECT_DIR means the directory of the project where contains '.project'
2.2 python xml_file_search.py
( generate log4j.xml )
2.3 vi log4j.xml and modify it as you like
( Our log4j support "OFF FATAL ERROR WARN INFO DEBUG TRACE ALL" Besides, we support "IGNORE" which means its level is depended upon its parent's level. )
2.4 python xml_parse.py
( it will change InitLogger.java according to log4j.xml automatically )
We use greendao as our ORM database
( More info about greendao, please refer to
The framework of the source code
The layer of our source code are seperated as: UI, INTERFACE, TYPE, MODEL, ACTION, COMMAND, BASE, OPEN, DB, DB-gen, UTIL, LOG, ESPTOUCH
UI layer is just the UI, it shouldn't contain complex business logical.
INTERFACE layer contains the interfaces, it defines the interface to be implemented.
TYPE layer contains the property type, including device's type, device's state, device's status, device's timer and etc.
MODEL layer contains various models. The differece between TYPE and MODEL is that TYPE just stores the property but model contains business logical.
ACTION layer contains various actions. The action is based upon command. ACTION = COMMANDS + BUSINESS LOGICAL
COMMAND layer contains various commands. The command is the basis of action. COMMAND is pure command without any logical.
BASE layer is the basic layer, which is the base of the iot espressif apk.
OPEN layer is used to store open api and source code, such as zxing, from others.
DB layer is used to make the intermediate layer between DB-gen and upper layer.
DB-gen layer is generated by greendao to implement ORM.
UTIL layer contains various utilities classes.
LOG layer is the layer about logging. Log4j is used at present.
ESPTOUCH layer contains the source code of esptouch. ESPTOUCH layer is an indepent layer. At present, only UI layer depends upon it. And it is just used to display a ESPTOUCH demo.