Search found 69 matches

by ESP_cermak
Mon Apr 01, 2019 7:13 pm
Forum: General Discussion
Topic: Meaning of esp_mqtt_client_config_t.refrech_connection_after_ms
Replies: 2
Views: 4794

Re: Meaning of esp_mqtt_client_config_t.refrech_connection_after_ms

Hi Paul,

you can use `keepalive` field from the configuration structure (this would send pings to the broker if no communication for given time)

`refresh_connection_after_ms` would actively disconnect and reconnect to the broker if configured.
by ESP_cermak
Fri Mar 29, 2019 10:08 am
Forum: ESP-IDF
Topic: MQTT over SSL - Mosquitto
Replies: 9
Views: 19827

Re: MQTT over SSL - Mosquitto

Looks like a totally different error, now I'd suspect if you switched off the firewall, the connection would work. This error says you cannot initiate a tcp connection to given host/port, before ssl handshake takes place. In case you still cannot connect, please share also mosqutto configuration and...
by ESP_cermak
Thu Mar 21, 2019 8:55 pm
Forum: ESP-IDF
Topic: MQTT over SSL - Mosquitto
Replies: 9
Views: 19827

Re: MQTT over SSL - Mosquitto

Thanks for this testing and sharing the results. This is really strange, can you please share which version of mosquitto you use? Ive had some trouble with older versions, but generally worked ok once a python script (using paho lib) could connect. I seems you cannot connect to mosquitto on your end...
by ESP_cermak
Thu Mar 21, 2019 9:17 am
Forum: ESP-IDF
Topic: MQTT over SSL - Mosquitto
Replies: 9
Views: 19827

Re: MQTT over SSL - Mosquitto

Hi balint603 Espressif supports this library from IDF v3.2, but still this should work with 3.1 and 3.0 (Have just tested on idf 3.0 and connects correctly to the public broker) Can you please test if - you can connect to iot.eclipse.org (broker from the example) - you connect to your local mosquitt...
by ESP_cermak
Wed Mar 20, 2019 10:58 am
Forum: ESP-IDF
Topic: MQTT over SSL - Mosquitto
Replies: 9
Views: 19827

Re: MQTT over SSL - Mosquitto

Hi,
could you please try this?

Code: Select all

const esp_mqtt_client_config_t mqtt_cfg = {
.uri = "mqtts://192.168.1.11:8883",
.event_handle = mqtt_event_handler,
.cert_pem = (const char *)your_server_cert_pem_start,
};
by ESP_cermak
Wed Mar 20, 2019 10:53 am
Forum: ESP-IDF
Topic: Potential serious issue with MQTT library in ESP-IDF 3.2 - resolved by Espressif?
Replies: 2
Views: 4851

Re: Potential serious issue with MQTT library in ESP-IDF 3.2 - resolved by Espressif?

Hi Yes these issues are resolved in these commits: https://github.com/espressif/esp-mqtt/commit/db64b791205c8dbcd0f3826a9544f0aa0301baaf https://github.com/espressif/esp-mqtt/commit/cf5b8eda89057f5eb49654d2eaf4d1a209af2d11 https://github.com/espressif/esp-mqtt/commit/d4b66556186141e09db89c57781c6709...
by ESP_cermak
Sat Mar 09, 2019 5:59 pm
Forum: General Discussion
Topic: MQTTCloud Uri
Replies: 1
Views: 2991

Re: MQTTCloud Uri

Hi,

If you are using esp-mqtt, then it should be
{schema}://{user}:{password}@m14.cloudmqtt.com:{port}
where {schema} is
- *mqtt* for tcp connection
- *mqtts* for tls connection
- *ws* for connection over websockets
- *wss* for TLS connection over websockets
by ESP_cermak
Mon Mar 04, 2019 9:15 pm
Forum: ESP-IDF
Topic: Assembler output?
Replies: 2
Views: 5422

Re: Assembler output?

Let me just add a quick note about "-S" flag if one wanted the compiler to produce also assembly during compilation: One of the method is to print out compiler commands using `make -n` and grepping out the exact module you want the assembly for. Copy and paste this line to the command line and add a...
by ESP_cermak
Mon Mar 04, 2019 3:29 pm
Forum: ESP-IDF
Topic: How to add code generation target?
Replies: 1
Views: 3789

Re: How to add code generation target?

Hi nameofuser1, Please follow the description in the docs https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#source-code-generation, you can see some usage examples here https://github.com/espressif/esp-idf/blob/master/components/esp32/component.mk#L65. If you don't w...
by ESP_cermak
Mon Mar 04, 2019 2:52 pm
Forum: ESP-IDF
Topic: Error: Can't find interface/ftdi/esp32_devkitj_v1.cfg in procedure 'script'
Replies: 1
Views: 5133

Re: Error: Can't find interface/ftdi/esp32_devkitj_v1.cfg in procedure 'script'

Hi, if you run the OpenOCD from git repo, built from sources, then the scripts reside in *tlc* directory Please note the description below the topic https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/jtag-debugging/index.html#building-openocd-from-sources about executing openocd: src/o...