Compare commits
No commits in common. "cbce043f30926c77a4c015d3ef733df2befe1c83" and "e60b8ef8aec020661d166e44fa5f194fabd218d9" have entirely different histories.
cbce043f30
...
e60b8ef8ae
@ -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/100;
|
||||
p = iaqSensor.pressure;
|
||||
h = iaqSensor.humidity;
|
||||
iaq = iaqSensor.iaq;
|
||||
iaqAcc = iaqSensor.iaqAccuracy;
|
||||
|
@ -132,7 +132,10 @@ void WifiSetup(productConfig conf) {
|
||||
bssidConf = bssid;
|
||||
}
|
||||
|
||||
SKETCH_DEBUG_PRINTF("Using channel %u (0==auto)\n", conf.channel );
|
||||
// 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);
|
||||
WiFi.begin(conf.ssid, conf.password, conf.channel, bssidConf);
|
||||
while (WiFi.status() != WL_CONNECTED) {
|
||||
delay(50);
|
||||
@ -141,7 +144,7 @@ void WifiSetup(productConfig conf) {
|
||||
reconfig = 0;
|
||||
return;
|
||||
}
|
||||
if (connectionTry == 120) {
|
||||
if (connectionTry == 60) {
|
||||
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