These are chat archives for esp8266/Arduino

26th
Nov 2018
Martin
@martinius96
Nov 26 2018 15:32
Hello, I am using RFID reader RC522 with NodeMCU v3 Lolin. It is working, but it crash when I start to use wifi in code, I want to send code from card to website.. Any suggestions what i am doing wrong?
https://paste.ofcode.org/BkeFnZYpQcuBMb9Bf66Hh3
mega-hz
@mega-hz
Nov 26 2018 15:50
maybe the rc522 is too close to the esp?
Martin
@martinius96
Nov 26 2018 16:02
It is circa 15cm from ESP. Do you think it could be interference?
Develo
@devyte
Nov 26 2018 16:03
  1. You're using vanilla WiFSecureClient which uses axtls which has a long list of issues, especially in oom. Instead, use bearssl::WiFiClientSecure, which uses bearssl, which although still experimental, has so far not broken even once in the lower lib.
Martin
@martinius96
Nov 26 2018 16:03
thanks, and how about HTTPclient?
Develo
@devyte
Nov 26 2018 16:03
  1. You're trying to roll your own http client. Why? Use httpclient instead, it implements
Martin
@martinius96
Nov 26 2018 16:04
I will try
thanks
Develo
@devyte
Nov 26 2018 16:04
... the http client side protocol too avoid several pitfalls.
Martin
@martinius96
Nov 26 2018 20:01
problem was fixed by using different library for RFID RC522.
Develo
@devyte
Nov 26 2018 20:03
3rd party libs should explicitly state they support the ESP8266. If they don't, and they were written for e.g.: the avr, they could potentially not comply with the ESP's timing constraints, in which case you'll get crashes
even if they do state support for the ESP, it's important to note which core version was last tested against. The core has to keep up with sdk updates as well as other underlying libs, and sometimes that requires tweaking in 3rd party lib implementations