i2c.reqfrom hang ?

Here we can discuss about the problem found
User avatar
Oli
Posts: 78
Joined: Tue Feb 09, 2021 10:07 am
Location: Germany, Meissen
Has thanked: 18 times
Been thanked: 54 times
Contact:

Re: i2c.reqfrom hang ?

Post by Oli »

for all versions ESP8266 and ESP32 works

Code: [Local Link Removed for Guests]

sub PCF8574a_read(x)
i2c.reqfrom PCF8574a_address, 1
 x = i2c.read
 i2c.end
end sub
with the ESP8266 the additional i2c.begin does not disturb, so that the samples and description work,
with the ESP32 the line is not allowed to be included.

if the PCF is connected everything works fine, as soon as the connection is interrupted or you start a program without a PCF connected the ESP will reboot,
User avatar
cicciocb
Site Admin
Posts: 2383
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 498 times
Been thanked: 1675 times
Contact:

Re: i2c.reqfrom hang ?

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue Oct 01, 2024 8:46 am for all versions ESP8266 and ESP32 works

Code: [Local Link Removed for Guests]

sub PCF8574a_read(x)
i2c.reqfrom PCF8574a_address, 1
 x = i2c.read
 i2c.end
end sub
with the ESP8266 the additional i2c.begin does not disturb, so that the samples and description work,
with the ESP32 the line is not allowed to be included.

if the PCF is connected everything works fine, as soon as the connection is interrupted or you start a program without a PCF connected the ESP will reboot,
Oli,
thanks for your feedback, I was expecting this behavior for the ESP8266 .... I'll update the documentation.

Could you confirm that the reboot happens only on the ESP8266 ?
Post Reply