Andrew Boyson
/
iot
Backing up an unused program in case of future need
explanation.txt@0:09f915e6f9f6, 2016-04-13 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed Apr 13 09:21:02 2016 +0000
- Revision:
- 0:09f915e6f9f6
- Child:
- 3:accba7e07a0d
Fixed memory allocation issues and added enumeration to log.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 0:09f915e6f9f6 | 1 | main module |
andrewboyson | 0:09f915e6f9f6 | 2 | =========== |
andrewboyson | 0:09f915e6f9f6 | 3 | Calls each module's init routines then loops through each module's main routines. |
andrewboyson | 0:09f915e6f9f6 | 4 | |
andrewboyson | 0:09f915e6f9f6 | 5 | esp module |
andrewboyson | 0:09f915e6f9f6 | 6 | ========== |
andrewboyson | 0:09f915e6f9f6 | 7 | Raw character talking to the ESP 8266. |
andrewboyson | 0:09f915e6f9f6 | 8 | Sends stings and data to the ESP. |
andrewboyson | 0:09f915e6f9f6 | 9 | Receives characters from the ESP and treats the following cases: |
andrewboyson | 0:09f915e6f9f6 | 10 | '\n' -> sends a completed line |
andrewboyson | 0:09f915e6f9f6 | 11 | '+IPD,id,len:' -> reads in length bytes to the relevant id's input buffer |
andrewboyson | 0:09f915e6f9f6 | 12 | '>' -> sends the data to the id specified |
andrewboyson | 0:09f915e6f9f6 | 13 | otherwise -> adds to the current line |
andrewboyson | 0:09f915e6f9f6 | 14 | |
andrewboyson | 0:09f915e6f9f6 | 15 | at module |
andrewboyson | 0:09f915e6f9f6 | 16 | ========= |
andrewboyson | 0:09f915e6f9f6 | 17 | Sends commands |
andrewboyson | 0:09f915e6f9f6 | 18 | Depends on the esp module. |
andrewboyson | 0:09f915e6f9f6 | 19 | |
andrewboyson | 0:09f915e6f9f6 | 20 | wifi module |
andrewboyson | 0:09f915e6f9f6 | 21 | =========== |
andrewboyson | 0:09f915e6f9f6 | 22 | Starts the esp module; doing the auto baud rate detection and logging in if needed. |
andrewboyson | 0:09f915e6f9f6 | 23 | Depends on the at module. |
andrewboyson | 0:09f915e6f9f6 | 24 | |
andrewboyson | 0:09f915e6f9f6 | 25 | ntp module |
andrewboyson | 0:09f915e6f9f6 | 26 | ========== |
andrewboyson | 0:09f915e6f9f6 | 27 | Sends periodic time requests. |
andrewboyson | 0:09f915e6f9f6 | 28 | Handles received time responses and sets the system time. |
andrewboyson | 0:09f915e6f9f6 | 29 | Depends on the at module. |
andrewboyson | 0:09f915e6f9f6 | 30 | |
andrewboyson | 0:09f915e6f9f6 | 31 | server module |
andrewboyson | 0:09f915e6f9f6 | 32 | ============= |
andrewboyson | 0:09f915e6f9f6 | 33 | Responds to http requests |
andrewboyson | 0:09f915e6f9f6 | 34 | Depends on the at module. |
andrewboyson | 0:09f915e6f9f6 | 35 | |
andrewboyson | 0:09f915e6f9f6 | 36 | support modules |
andrewboyson | 0:09f915e6f9f6 | 37 | =============== |
andrewboyson | 0:09f915e6f9f6 | 38 | io - inputs and outputs |
andrewboyson | 0:09f915e6f9f6 | 39 | log - provides logging |
andrewboyson | 0:09f915e6f9f6 | 40 | time - maintains the system time |