Compare commits
2 Commits
e60b8ef8ae
...
cbce043f30
Author | SHA1 | Date | |
---|---|---|---|
|
cbce043f30 | ||
|
e68eec8955 |
@ -94,7 +94,7 @@ int BME680BSECGetMeasure(float &t, float &p, float &h, float &iaq, float &iaqAcc
|
||||
{
|
||||
if (iaqSensor.run()) { // If new data is available
|
||||
t = iaqSensor.temperature;
|
||||
p = iaqSensor.pressure;
|
||||
p = iaqSensor.pressure/100;
|
||||
h = iaqSensor.humidity;
|
||||
iaq = iaqSensor.iaq;
|
||||
iaqAcc = iaqSensor.iaqAccuracy;
|
||||
|
@ -132,10 +132,7 @@ void WifiSetup(productConfig conf) {
|
||||
bssidConf = bssid;
|
||||
}
|
||||
|
||||
// WA https://github.com/esp8266/Arduino/issues/2186
|
||||
WiFi.persistent(false);
|
||||
WiFi.mode(WIFI_OFF); // this is a temporary line, to be removed after SDK update to 1.5.4
|
||||
WiFi.mode(WIFI_STA);
|
||||
SKETCH_DEBUG_PRINTF("Using channel %u (0==auto)\n", conf.channel );
|
||||
WiFi.begin(conf.ssid, conf.password, conf.channel, bssidConf);
|
||||
while (WiFi.status() != WL_CONNECTED) {
|
||||
delay(50);
|
||||
@ -144,7 +141,7 @@ void WifiSetup(productConfig conf) {
|
||||
reconfig = 0;
|
||||
return;
|
||||
}
|
||||
if (connectionTry == 60) {
|
||||
if (connectionTry == 120) {
|
||||
SKETCH_DEBUG_PRINTLN("Cannot connect to wifi. Try without BSSID and channel");
|
||||
WiFi.begin(conf.ssid, conf.password);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user