r-map / rmap

rete monitoraggio ambientale partecipativo documentation at https://doc.rmap.cc
https://rmap.cc
52 stars 43 forks source link

firmware: sensor_config cannot work #380

Closed pat1 closed 2 years ago

pat1 commented 2 years ago

The code in sensor_config cannot work.

There are a lot of I2C communication like this:

    //Wire.beginTransmission(I2C_WINDSONIC_DEFAULTADDRESS);
    //Wire.write(I2C_WINDSONIC_ADDRESS);
    Wire.write(new_address);
    if (Wire.endTransmission() != 0) Serial.println(F("Wire Error"));             // End Write Transmission

without Wire.beginTransmission cannot work as expected.