Search found 8 matches

by VicLuna
Sat Apr 11, 2020 2:02 pm
Forum: General Discussion and Questions
Topic: Connecting to AWS with MQTT
Replies: 26
Views: 8539

Re: Connecting to AWS with MQTT

I found the error.

I run the posted code with firmware:
esp32-idf3-20200410-v1.12-357-g740946736.bin
esp32-idf3-20200404-v1.12-331-ge97bb58f0.bin

both I got error reported

however with the firmware esp32-idf3-20190529-v1.11.bin works perfectly.

this post help you
by VicLuna
Sat Apr 11, 2020 9:15 am
Forum: Programs, Libraries and Tools
Topic: OLED with SSD1322 controller
Replies: 3
Views: 1190

Re: OLED with SSD1322 controller

Hi

have you tried SSD1306?
https://github.com/adafruit/micropython ... it-ssd1306

this library when you create the class define the resolution.
it may works.

tell us

Regards
by VicLuna
Sat Apr 11, 2020 9:13 am
Forum: General Discussion and Questions
Topic: Interfacing with industrial PLC and HMI
Replies: 3
Views: 547

Re: Interfacing with industrial PLC and HMI

Hi

I can not help you about it, but I should say that I'm interested to this topic too.
How to connect ESPxxxx with PLC.

Regards
by VicLuna
Sat Apr 11, 2020 9:07 am
Forum: ESP8266 boards
Topic: D1 mini 0.66" OLED and I2C buttons
Replies: 5
Views: 585

Re: D1 mini 0.66" OLED and I2C buttons

can you write your I2C object definition?

because at the datasheet say

D1 mini GPIO Shield
D1 5 SCL
D2 4 SDA

so are you wiring ping 5, and pin 4 with SCL and SDA respectively.
by VicLuna
Sat Apr 11, 2020 9:03 am
Forum: General Discussion and Questions
Topic: ESP32, MQTT, and LED temperature trigger
Replies: 7
Views: 798

Re: ESP32, MQTT, and LED temperature trigger

Yes of course you can switch ON your LED strip. I guess that you LED strip is 220 AC power, so you need to add a relay for it. This relay you should connect to a pin.out that it's subscribe to a topic. this topic could be something like /led and you send a message 'on' or 'off' something like this: ...
by VicLuna
Sat Apr 11, 2020 8:43 am
Forum: General Discussion and Questions
Topic: Connecting to AWS with MQTT
Replies: 26
Views: 8539

Re: Connecting to AWS with MQTT

Hi thanks for your sooner reply. I checked it with 2 different certifications and the result was the same I got error -10. but on the other hand, when I used those certification key with other applications and enviroments works fine. 1.- Certification is a windows python SDK that provides AWS, and I...
by VicLuna
Fri Apr 10, 2020 11:19 am
Forum: General Discussion and Questions
Topic: Connecting to AWS with MQTT
Replies: 26
Views: 8539

Re: Connecting to AWS with MQTT

Hi I followed all your instructions and I got a error that no body talks about i. mbedtls_ssl_handshake error: -10 I post my code and you may find I'm missing something. ..... certpem=open('/flash/cert').read() privkey=open('/flash/key').read() mqtt_server = 'a15azlxdxhvk5o-ats.iot.eu-west-1.amazona...
by VicLuna
Fri Sep 13, 2019 8:54 pm
Forum: ESP8266 boards
Topic: API return JSON, generate a urequest error
Replies: 1
Views: 377

API return JSON, generate a urequest error

Hi I've created an Google API that returns a json like this: jsonData= {"Celda1":"XX", "Celda2":"123" }; return return ContentService .createTextOutput(JSON.stringify(jsonData)) .setMimeType(ContentService.MimeType.JSON); the API is executed correctly. executing this code: r=requests.post(url, json=...