Search found 8 matches

by fmuller-pi
Sun Feb 17, 2019 8:41 am
Forum: ESP8266 SDK
Topic: ESP_RTOS_SDK v3.1 => How to get IP address assigned to our ESP?
Replies: 0
Views: 37

ESP_RTOS_SDK v3.1 => How to get IP address assigned to our ESP?

Hi,

Is there a function somewhere in the SDK (RTOS v3.1) that allow us to get the IP address assigned to our device when it is connected to the WiFi?

Thanks
by fmuller-pi
Sun Feb 17, 2019 5:41 am
Forum: ESP8266 SDK
Topic: MQTT reconnect fails
Replies: 1
Views: 36

Re: MQTT reconnect fails

Self-answer here.

The issue came from the fact that I was not doing network.disconnect(&network) after an issue occurred and before I was trying to reconnect to the MQTT client. In the ESP_SDK v2.x.x, they don't show this, but in the version v3.1 they show it properly.
by fmuller-pi
Sun Feb 17, 2019 5:38 am
Forum: ESP8266 SDK
Topic: Can't switch from WiFi AP mode to STA mode
Replies: 1
Views: 41

Re: Can't switch from WiFi AP mode to STA mode

I am self-answering myself here. The issue came from the fact that I was not initializing the structure wifi_config_t to 0 (i.e. like this: structurewifi_config_t config = {0}). So because I was then using it and filling the SSID and password, but that the rest was randomly set, it created some issu...
by fmuller-pi
Fri Feb 15, 2019 2:17 am
Forum: ESP8266 SDK
Topic: Can't switch from WiFi AP mode to STA mode
Replies: 1
Views: 41

Can't switch from WiFi AP mode to STA mode

Hi, I am using the version 3.1 (the most up to date in the release branch) of the ESP8266_RTOS_SDK. For my project, I start the application by setting the ESP8266 to AP mode, so that I can connect to it with my phone. Then, once I got the network credentials, I want to shut down the AP mode and go i...
by fmuller-pi
Sun Feb 10, 2019 10:55 am
Forum: ESP8266 SDK
Topic: MQTT reconnect fails
Replies: 1
Views: 36

MQTT reconnect fails

Hi, I am using the ESP8266_RTOS_SDK_2.x.x version and I connect to my cloud (Google Cloud) using MQTT secured protocol. The flow of functions I call is chronological as follow: 1) NetworkInitSSL() 2) MQTTClientInit() 3) NetworkConnectSSL() 4) MQTTConnectWithResults() 5) MQTTSubscribe() 6) MQTTPublis...
by fmuller-pi
Fri Feb 01, 2019 3:05 pm
Forum: ESP8266 SDK
Topic: ESP8266_RTOS_SDK_v2.x.x => Problem using configTime and getting time
Replies: 4
Views: 145

Re: ESP8266_RTOS_SDK_v2.x.x => Problem using configTime and getting time

Thanks for your reply. Unfortunately, I just started to work on this project and picked it up from a previous coworker. We don't want to move to the 3.1 because the SDK totally changed between the 2.x.x that we started working with and the latest version. And the deadline for that project is too tig...
by fmuller-pi
Fri Feb 01, 2019 7:25 am
Forum: ESP8266 SDK
Topic: ESP8266_RTOS_SDK_v2.x.x => Problem using configTime and getting time
Replies: 4
Views: 145

ESP8266_RTOS_SDK_v2.x.x => Problem using configTime and getting time

Hi all, I am using the ESP8266_RTOS_SDK_v2.x.x with my ESP8266. I need to connect to my Cloud (using Google Cloud Platform) and to do this, I generate a JWT. For that, I need the Unix time so I can set the validity of the token I am creating. So, I am trying to use the API configTime for that. I cal...

Go to advanced search