Skip to content

Commit

Permalink
Send WLAN-Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shining-man committed Jul 3, 2024
1 parent 0f2478e commit 8639b9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ void task_i2c(void *param)
if(WiFi.getMode()==WIFI_MODE_AP) ipAddr="192.168.4.1";
else ipAddr = WiFi.localIP().toString();
i2cSendData(inverter, I2C_DEV_ADDR_DISPLAY, BSC_DATA, BSC_IP_ADDR, 0, ipAddr, 16);
i2cSendDataU8(inverter, I2C_DEV_ADDR_DISPLAY, BSC_DATA, BSC_WLAN_MODE, 0, (uint8_t)WiFi.getMode());
}

xSemaphoreTake(mutexTaskRunTime_i2c, portMAX_DELAY);
Expand Down

0 comments on commit 8639b9b

Please # to comment.