hello_world

Example of the component marcel-cd/etclcpp v1.0.1
# Hello World  

## Running the Example  

To run this masterpiece on a Linux host, simply use:  

```sh
make linux
```

## Code  

``` c
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>

#include <etl/string.h>

const char *TAG = "main";

extern "C" void app_main() {
  etl::string<20> text1 = "Hello";
  etl::string<20> text2 = " World!!!";
  text1 += text2;
  ESP_LOGI(TAG, "%s (len: %zu, capacity: %zu)", text1.c_str(), text1.size(),
           text1.capacity());
}
```

## Output  

```
I (742408341) main: Hello World!!! (len: 14, capacity: 20)
```

To create a project from this example, run:

idf.py create-project-from-example "marcel-cd/etclcpp=1.0.1:hello_world"

or download archive (~14.86 KB)