Search found 7 matches

by euripedes
Tue May 22, 2018 5:13 pm
Forum: ESP-IDF
Topic: Wifi can't connect with ssid loaded from file.(NO_AP_FOUND)
Replies: 5
Views: 11076

Re: Wifi can't connect with ssid loaded from file.(NO_AP_FOUND)

Solving my own problem: The issue was that the config has other parameters and they need to be correctly seted. Providing the correct values solved the issue. Seems that for the other parameters by zeroizing the union is enough. I had to set the scan for all channels and after that the connection wo...
by euripedes
Tue May 22, 2018 4:16 pm
Forum: ESP-IDF
Topic: c++ and simple wifi example
Replies: 6
Views: 18572

Re: c++ and simple wifi example

As pointed above, the error is due to initialization. I was able to make example to run again by loading the current config with esp_wifi_get_config.
by euripedes
Tue May 22, 2018 11:38 am
Forum: ESP-IDF
Topic: c++ and simple wifi example
Replies: 6
Views: 18572

Re: c++ and simple wifi example

Hi, just to point that this don't have anything with C++. I have the same issue(reported in another topic). Since you cannot initialize the struct in C style you had to use sprintf to fill the config and after that the wifi stack can't find the AP as pointed by the 201 error in your logs. I have the...
by euripedes
Mon May 21, 2018 4:32 pm
Forum: ESP-IDF
Topic: Wifi can't connect with ssid loaded from file.(NO_AP_FOUND)
Replies: 5
Views: 11076

Re: Wifi can't connect with ssid loaded from file.(NO_AP_FOUND)

I don't understand why the cast solves the issue for you, but I'm glad it worked. I'm using memcpy there and it's parameters are void*. The arduino-esp32(which I believe you are using) use strcpy, hence the char * method interface. The cast itself, shouldn't be a source of trouble since all expected...
by euripedes
Fri May 18, 2018 11:25 am
Forum: ESP-IDF
Topic: MQTT SSL Library
Replies: 4
Views: 11381

Re: MQTT SSL Library

I did an integration of Paho MQTT recently for internal use, no open source sorry.

https://github.com/eclipse/paho.mqtt.embedded-c

It was not hard to integrate with mbedtls.
by euripedes
Tue May 15, 2018 12:36 pm
Forum: ESP-IDF
Topic: Wifi can't connect with ssid loaded from file.(NO_AP_FOUND)
Replies: 5
Views: 11076

Wifi can't connect with ssid loaded from file.(NO_AP_FOUND)

I'm trying to solve a strange issue. When the ssid and password are configured at compile time, the connection work. When the SSID is set from a file the connection fails with a 201 - NO_AP_FOUND. I can reproduce the problem here using the simple_wifi example. changing it to: wifi_config_t wifi_conf...