Search found 13 matches

by flodis
Tue Feb 27, 2018 1:07 am
Forum: ESP-IDF
Topic: [Solved] Reading character input from the serial port
Replies: 13
Views: 55169

Re: [Solved] Reading character input from the serial port

UART events! Using this Espressif sample the default ESP32 USB serial port UART events can be used. No polling! Source: https://github.com/espressif/esp-idf/blob/master/examples/peripherals/uart_events/main/uart_events_example_main.c Sending a random 43 character text over USB to a Wemos Lolin32 Li...
by flodis
Mon Feb 26, 2018 6:10 am
Forum: ESP-IDF
Topic: [Solved] Reading character input from the serial port
Replies: 13
Views: 55169

Re: Reading character input from the serial port

I'd reached the stage in my project where I couldn't go much further without being able to read from the serial input. Re-reading this forum and reading the comment from @martinayotte, I went back to the <rom/uart.h> and re-read. I decided to test a call to it in a loop just to see what happened. T...
by flodis
Mon Feb 26, 2018 5:28 am
Forum: ESP-IDF
Topic: Programming in C++ and using esp_wifi
Replies: 15
Views: 31864

Re: Programming in C++ and using esp_wifi

You can init structs in C++ but all elements of the struct has to be included in the initialization in the order they are declared as you can not reference properties by name. Luckily, in C++, the struct can be initialized with {} and each property assigned separately. //Allocate storage for the str...