Search found 7 matches
- Fri Oct 22, 2021 8:28 pm
- Forum: ESP-IDF
- Topic: ESP-TLS couldn't get hostname over bridged network (MQTT)
- Replies: 1
- Views: 6266
ESP-TLS couldn't get hostname over bridged network (MQTT)
Hello everyone! I'm using a raspberrypi as a mosquitto broker, it also runs grafana, influxdb and nodered. Since the raspberry is in the same room as the ESP32 that sends sensors values over mqtt, and this room is too far to be reached from a wifi repeater, I'm using a powerline to bring ethernet to...
- Tue Mar 02, 2021 7:05 pm
- Forum: ESP-IDF
- Topic: MQTT: How to handle wifi disconnection
- Replies: 2
- Views: 5111
Re: MQTT: How to handle wifi disconnection
If you stumble upon this topic the first thing you should know is that this line in the log is the key: mbedtls_ssl_setup returned -0x7f00 According to ssl.h it means MBEDTLS_ERR_SSL_ALLOC_FAILED which means Memory allocation failed. So I discovered that using cJson to create my mqtt messages was ca...
- Sun Feb 28, 2021 3:26 pm
- Forum: ESP-IDF
- Topic: MQTT: How to handle wifi disconnection
- Replies: 2
- Views: 5111
MQTT: How to handle wifi disconnection
Hello everyone! I don't know why, but since I started using esp idf 4.1.1 I started losing wifi connection around every hour, but that's not a big deal, I handle the disconnection and reconnect exactly as the wifi sta examples shows. But since I started experimenting with MQTT I can't get it to rest...
- Sat Feb 20, 2021 5:13 pm
- Forum: ESP IoT Solution
- Topic: MQTT SSL mutual authentication CA issues
- Replies: 1
- Views: 6259
Re: MQTT SSL mutual authentication CA issues
nevermind, I messed up my scripts to generate and authenticate the certificates.
I switched to this https://github.com/owntracks/tools/blob ... rate-CA.sh and it worked right away.
Sorry for wasting space in the forum.
Gustav
I switched to this https://github.com/owntracks/tools/blob ... rate-CA.sh and it worked right away.
Sorry for wasting space in the forum.
Gustav
- Sat Feb 20, 2021 9:31 am
- Forum: ESP IoT Solution
- Topic: MQTT SSL mutual authentication CA issues
- Replies: 1
- Views: 6259
MQTT SSL mutual authentication CA issues
Hello Everyone! I'm trying to connect my ESP32 to a mosquitto broker, running in a raspberry in my local network, using mutual authentication. I tested the mosquitto broker and I was able to connect using client.crt client.key and ca.crt from many clients, so I'm pretty sure the issue is in my esp32...
- Wed Aug 19, 2020 7:57 am
- Forum: ESP-IDF
- Topic: U8g2 spi st7920 not working in esp idf but ok with Arduino
- Replies: 2
- Views: 4219
Re: U8g2 spi st7920 not working in esp idf but ok with Arduino
I checked the SPI signals on the oscilloscope and I found out that the Arduino code keeps RS/CS high, while esp-idf code keeps switching the RS/CS line up and down (like a normal SPI should do), so I moved the RS/CS wire to a fixed 3v3 and then, lo and behold, the display started working! According ...
- Tue Aug 18, 2020 8:25 am
- Forum: ESP-IDF
- Topic: U8g2 spi st7920 not working in esp idf but ok with Arduino
- Replies: 2
- Views: 4219
U8g2 spi st7920 not working in esp idf but ok with Arduino
Hello everyone! I'm starting to learn esp idf, and I'm trying to use a GLCD 128x64 with ST7920 over SPI. It works fine with the Arduino code, so the wiring it's ok (well... the rst pin is kind of a problem, but I can see things on the display so I'll check it later). But when I use u8g2 and the rela...