Search found 51 matches

by Scalpel78
Wed May 10, 2017 8:42 pm
Forum: ESP-IDF
Topic: Programming in C++ and using esp_wifi
Replies: 15
Views: 30050

Re: Programming in C++ and using esp_wifi

Hi, has anyone gotten the C++ syntax working? I'm trying to make a Wifi-connection from a .cpp file using this: //Connect to Wi-Fi tcpip_adapter_init(); ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) ); wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT(); ESP_ERROR_CHECK( esp_wifi_init(&c...
by Scalpel78
Sat May 06, 2017 10:24 pm
Forum: ESP-IDF
Topic: WSS, Libwebsockets
Replies: 8
Views: 17016

Re: WSS, Libwebsockets

FYI, v2.2 of libwebsockets which was released on 8th march contains ESP32 support.

Has anyone tried it out?
by Scalpel78
Fri Apr 28, 2017 8:29 am
Forum: General Discussion
Topic: Using Eigen on ESP32?
Replies: 3
Views: 6061

Using Eigen on ESP32?

Hi guys, currently on a holiday in Scotland, and without my ESP32 here I'm doing some research online for when I get back home again. I'm reading up on Kalman filters, and trying to figure out how I can implement one on the ESP32 to handle the sensors on my autonomous RC car. When reading about Kalm...
by Scalpel78
Sun Apr 16, 2017 8:03 pm
Forum: General Discussion
Topic: How to structure semi-complex application?
Replies: 6
Views: 12839

Re: How to structure semi-complex application?

Hi guys, I'm working my way through the FreeRTOS documentation, which seems very nicely written. DL88AI88, the pdf in your link doesn't seem to exist anymore. So far this is what my high-level architecture looks like: https://dl.dropboxusercontent.com/u/6293510/forumthreads/ESP32/Architecture.png So...
by Scalpel78
Tue Apr 11, 2017 10:00 pm
Forum: General Discussion
Topic: How to structure semi-complex application?
Replies: 6
Views: 12839

Re: How to structure semi-complex application?

Hi, and thanks for your proper reply. Those are all very good comments, and you are preaching to the choir here. I'm also a fan of modularization and compartmentalization. As a side note I've been a software developer for the better part of 13 years now, but for the most part with C# and web related...
by Scalpel78
Tue Apr 11, 2017 1:02 pm
Forum: General Discussion
Topic: How to structure semi-complex application?
Replies: 6
Views: 12839

How to structure semi-complex application?

Hi, I'm about to piece together my first big ESP32 program, and need some tips as to how I should architect the program. During the initial phase where I've built my own ESP32 PCB, I've made standalone ESP32 applications for testing the individual parts of my board. (https://github.com/Scalpel78/Gho...
by Scalpel78
Mon Apr 10, 2017 9:17 am
Forum: General Discussion
Topic: Porting Arduino I2C method to ESP32?
Replies: 2
Views: 6933

Re: Porting Arduino I2C method to ESP32?

Hi telanoc, thanks for your reply. Yes, in most cases you have to specify which register you want to read from, but for devices that only have one register you don't need to specify which one you want. In the TCA9548 datasheet , in section 8.5.3, this is described as a single-register device. From t...
by Scalpel78
Sun Apr 09, 2017 7:48 pm
Forum: General Discussion
Topic: Porting Arduino I2C method to ESP32?
Replies: 2
Views: 6933

Porting Arduino I2C method to ESP32?

Hi, I'm working with a custom PCB that has a TCA9548 I2C multiplexer. From one of my previous boards were I used a Teensy and Arduino to control the TCA9548, I've used this method to change the channel: void setActiveSensor(uint8_t i) { if (i > 7) return; Wire.beginTransmission(TCA_ADDRESS); Wire.wr...