Search found 30 matches

by arao23
Sun Jan 01, 2017 10:05 pm
Forum: General Discussion
Topic: The analog input parameters for GPIO pins
Replies: 4
Views: 12153

The analog input parameters for GPIO pins

Do they measure voltage or current? And what is the specification?

I read somewhere that the maximum current through each pin is 12 mA (with 6 mA optimum). Can I apply 0 to 6 mA signal to a GPIO pin and read it?

Or can it read just voltage? What are the voltage specs?
by arao23
Fri Dec 30, 2016 10:49 pm
Forum: ESP-IDF
Topic: Determining if the wifi password is incorrect
Replies: 5
Views: 9941

Determining if the wifi password is incorrect

I'm trying to determine whether the client-entered WiFi password is correct or not. What I did was listen for the SYSTEM_EVENT_STA_DISCONNECTED event to get the reason code. I get either WIFI_REASON_AUTH_FAIL or WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT when I enter an invalid password (e.g. too short, or ...
by arao23
Fri Dec 30, 2016 10:38 pm
Forum: ESP-IDF
Topic: Correct order of API calls to become an access point ...
Replies: 2
Views: 6050

Re: Correct order of API calls to become an access point ...

Set mode -> Set config -> Start works fine for me. After starting, I can switch between modes using just esp_wifi_set_mode without needing to touch anything else. ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_AP) ); wifi_config_t apConfig = { .ap = { .ssid="SomeSSIDHere", .password = "SomePasswordMo...
by arao23
Tue Dec 27, 2016 4:53 pm
Forum: ESP-IDF
Topic: Set gateway IP address (AP mode)
Replies: 7
Views: 19674

Re: Set gateway IP address (AP mode)

Awesome, thanks. Looks like it sets a static IP for the ESP32 when it is in station mode, did I get that right? I wanted to give clients a "static" IP address (gateway IP) to the ESP32 when other clients connect to it. What I did for now is let the ESP32 give itself whatever gateway IP it wants, and...
by arao23
Mon Dec 26, 2016 5:46 pm
Forum: ESP-IDF
Topic: Set gateway IP address (AP mode)
Replies: 7
Views: 19674

Re: Set gateway IP address (AP mode)

Hi kolban, thanks for your reply, hope you had a wonderful holiday. I'm trying to set the gateway's IP to 192.168.1.1, as it currently assigns some arbitrary value 192.168.4.1. Essentially, I want all connected clients to be able to send messages to the ESP32, hence I need the ESP32 to have a "stati...
by arao23
Wed Dec 21, 2016 9:31 pm
Forum: Report Bugs
Topic: Eclipse IDE - Errors
Replies: 0
Views: 3224

Eclipse IDE - Errors

Not sure if this is a problem with my setup or the SDK, but on Eclipse (the latest one, Neon, on Windows), I get error annotations when using certain macros like ESP_LOGX or IP2STR, but the build itself (via command-line, "make app") compiles without problems. builderrors.png The interesting thing i...
by arao23
Wed Dec 21, 2016 6:30 pm
Forum: ESP-IDF
Topic: Set gateway IP address (AP mode)
Replies: 7
Views: 19674

Set gateway IP address (AP mode)

Hey, I'm trying to set the gateway IP, and after scouring the forums and docs, this is what I came up with, but for some reason DHCP is still active and sets the gw IP to 192.168.4.1 instead of 192.168.1.1. Any ideas? Thanks! :) tcpip_adapter_init(); tcpip_adapter_dhcpc_stop(TCPIP_ADAPTER_IF_AP); tc...
by arao23
Fri Dec 16, 2016 7:33 am
Forum: ESP-IDF
Topic: Exchanging keys securely?
Replies: 6
Views: 10743

Re: Exchanging keys securely?

What I mean is, if it's a default / known AP password with e.g. WPA2, those airwaves can all be captured into a dump and then anybody can use the default password to decrypt the packets. Wireshark supports this, I believe.
by arao23
Fri Dec 16, 2016 7:31 am
Forum: ESP-IDF
Topic: Exchanging keys securely?
Replies: 6
Views: 10743

Re: Exchanging keys securely?

Yes, that was my original approach. Thing is, if it's a pre-configured AP password, capturing all the airwaves into a dump and then using your known key to decrypt the packets and retrieve the SSID and password of your home wifi is a trivial task. Thing is, none of us want our products to show up on...
by arao23
Fri Dec 16, 2016 4:51 am
Forum: ESP-IDF
Topic: Exchanging keys securely?
Replies: 6
Views: 10743

Re: Exchanging keys securely?

This article seems to be a good read:
http://depletionregion.blogspot.com/201 ... ducts.html

Although, setting up bluetooth pairing is a bit of a pain (relatively speaking), and requires the end-user to have a BT capable device, not just a router. Any other ideas?