Skip to content

Trying out different things using official SDK + IOT Example

Notifications You must be signed in to change notification settings

vladkosarev/esp8266_IOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp8266_IOT

Trying out different things using official SDK + IOT Example

This is based on a copy of Espressif's SDK+IoT demo. Also, check out companion app - https://github.com/vladkosarev/esp8266_IOT_mobile

Here are some changes -

  1. Rudimentary CORS support. Webserver now understands ajax requests (did it for mobile app).

  2. Added another sensor - RAIN, just to demo what adding a simple sensor looks like in code. For now it's just doing adc read but since ESP-01 doesn't have ADC pin out it's just sending garbage data. Will actually add a sensor to this if GPIO00 and GPIO02 allow.

  3. In user_config you can define DEEP_SLEEP_OVERRIDE. This will override deep sleep settings. I added it because I have ESP-01 which is missing GPIO16 pin so esp never wakes up from deep sleep. I wanted to make a clear define for that scenario. As soon as I get ESP-03 I'll just remove that define and off we go.

  4. You can direct all os_printf to UART0 by defining TRACE_TO_UART0 in uart.c

  5. You can enable more tracing by defining TRACE_ESPCONN in espconn.h

About

Trying out different things using official SDK + IOT Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published