Skip to content

Commit 6671fbf

Browse files
committed
Add a basic HTTP web server that says hello at GET /hello
1 parent 2fc3b17 commit 6671fbf

File tree

12 files changed

+132
-61
lines changed

12 files changed

+132
-61
lines changed

NOTES.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Rebuilding with baud rate 115200 makes `screen /dev/ttyUSB0 115200` produce outp
185185
GGq4O.���ɏ�ɏQ�0�~?�4�!�S{�O�:9�O�:9�COAa�$\���S��4�MS��F�����.P�r|Vz4E^V8���M�0�zx��#A�AVZ��#�pRZR�rRRZ�E��&��,CORRV��'K�EEZG�Ň�EERGG���MK�EERG��'K�EEZG��#�G�����Gq���4O.�ɏ�ɏ��ɏ�ɏ��ɏ�ɏ��ɏ�ɏ��ɏ�ɏQ�0�~?�4�!�S{�O�:9�O�:9�COAa�$L���S��4�MS��F�����.P�r|Vz4E^V8���M�0�zx��#A�AVZ��#�pRZR�rRRZ�E��&��,CORRV��'K�EEZG�Ň�EERGG���MK�EER��r�b�nn�lnnl��r�nn�||�bbl��r�b�nn�lnn��r�nn�||�bbl��r�b�nn�lnn��r�nn�||�bbl��r�b�nn�lnn��r�nn�||�bbl��r�b�nn�lnnl�r�nn�||�bbl��r�b�nn�lnn�r�nn�||�bbl
186186
```
187187

188-
At this point I'm going to give up and just use `make monitor`, and figure this out later with the help of someone more experienced. The project runs and I can move on to writing some application code.
188+
At this point I'm going to give up and just use `make monitor`, and figure this out later with the help of someone more experienced.
189189

190190
### A foray into Linux specifics
191191

@@ -236,3 +236,9 @@ minicom -p /dev/pts/4
236236
```
237237

238238
Type some stuff... and it appears on my newest terminal! Cool! Trying to type on `/dev/pts/4` produces the same characters on `/dev/pts/3`, but some get dropped. I'm curious to find out why, but let's get back to the main course.
239+
240+
## The Memfault SDK
241+
242+
Documentation link: https://docs.memfault.com/docs/embedded/esp8266-rtos-sdk-guide/
243+
244+
I'm starting by getting some application code in place. It's just going to be an HTTP server with simple routes. Then, I'll try to integrate the Memfault SDK on top.

hello_world/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

hello_world/Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

hello_world/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

hello_world/main/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

hello_world/main/hello_world_main.c

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# The following lines of boilerplate have to be in your project's CMakeLists
2+
# in this exact order for cmake to work correctly
3+
cmake_minimum_required(VERSION 3.5)
4+
5+
# (Not part of the boilerplate)
6+
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7+
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
8+
9+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
10+
project(simple)

src/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
PROJECT_NAME := toastboard
2+
3+
EXTRA_COMPONENT_DIRS = $(IDF_PATH)/examples/common_components/protocol_examples_common
4+
5+
include $(IDF_PATH)/make/project.mk
6+

src/main/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set(COMPONENT_SRCS "main.c")
2+
set(COMPONENT_ADD_INCLUDEDIRS ".")
3+
4+
register_component()
File renamed without changes.

0 commit comments

Comments
 (0)