jeelabs / el-client

Arduino client for esp-link's REST, MQTT, and command interface
BSD 2-Clause "Simplified" License
83 stars 46 forks source link

Query IP address info from the application #25

Open dannybackx opened 7 years ago

dannybackx commented 7 years ago

These changes allow the (arduino) microcontroller application to query the IP address. Note : separate commits, one of which contains fixes for compile issues in my environment.

FernandoGarcia commented 7 years ago

Hi @dannybackx !

This changes doesn't work to me.

The result of your test code is:

ELClient test : show IP information
ELC: got 10 @496: 2 482 0 16 7C
RESP_V: 1154
SYNC!
EL-Client synced!
ELC: got 14 @496: 3 482 1 1 0 5 0 31 66
RESP_CB: 1154 1
WIFI CONNECTED
Returning ...
IP Address 0.0.0.0
Network mask 0.0.0.0
IP Gateway 0.0.0.0
MAC Address : 00:00:00:00:00:00

I'm using this version of ESP-link:

esp-link v3.0.alpha0 - 2016-10-23 06:45:14

I changed the 5 files as shown here: https://github.com/jeelabs/el-client/pull/25/files

Best regards.

dannybackx commented 7 years ago

You need the corresponding change to esp-link also.

FernandoGarcia commented 7 years ago

Thanks by info!

Now I have to learn how to compile the firmware :)

dannybackx commented 7 years ago

http://danny.backx.info/danny/public/esp-link-danny-201612071945-development.tgz

FernandoGarcia commented 7 years ago

Thank you very much!

Can you tell me the username and password?

dannybackx commented 7 years ago

Of the website ? You should be able to download without credentials.

FernandoGarcia commented 7 years ago

No, for ESP interface.

dannybackx commented 7 years ago

See esp-link/config.c : .telnet_port0pass = "1234567890123456\0", .telnet_port1pass = "1234567890123456\0",

FernandoGarcia commented 7 years ago

Sorry but I don't understand.

I'm talking about this login:

capturar

dannybackx commented 7 years ago

Ah, sorry about that. This is stuff still under development in the branch I sent you a build from. os_strcpy(user, "admin"); os_strcpy(pass, "s3cr3t");

FernandoGarcia commented 7 years ago

Thank you very much!

It's working very well now.

Best regards.

steamboating commented 7 years ago

I would love to see this going into the master branch!