Smart Home Automation Forum
[Arduino IDE demo source code for KC868-A32]--#07-KC868-A32_Web_server_code - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A32/A32 Pro (https://www.kincony.com/forum/forumdisplay.php?fid=27)
+--- Thread: [Arduino IDE demo source code for KC868-A32]--#07-KC868-A32_Web_server_code (/showthread.php?tid=2167)

Pages: 1 2


RE: [Arduino IDE demo source code for KC868-A32]--#07-KC868-A32_Web_server_code - admin - 03-05-2023

this is wifimanager library. you also can find it by google search.

.zip   WiFiManager.zip (Size: 141.96 KB / Downloads: 184)


RE: [Arduino IDE demo source code for KC868-A32]--#07-KC868-A32_Web_server_code - tugalsan - 03-06-2023

For the product: KinCony KC868-A32 Rev:1.2
With arduino: 2.0.4
With the custom libraries below:
CF8574_library.zip
WiFiManager.zip
When I open up the arduino, It wants to update the custom libraries. I Updated
Then I restarted the Arduino.
Then, I could able to compile the project with below warnings:
Code:
In file included from C:\me\codes\arduino\KinCony\KC868-A32_Web_Server\KC868-A32_Web_Server.ino:9:0:
c:\me\codes\arduino\libraries\WiFiManager/WiFiManager.h:706:10: warning: #warning "ESP32 set country unavailable" [-Wcpp]
        #warning "ESP32 set country unavailable"
          ^
Code:
In file included from c:\me\codes\arduino\libraries\WiFiManager\WiFiManager.cpp:13:0:
c:\me\codes\arduino\libraries\WiFiManager\WiFiManager.h:706:10: warning: #warning "ESP32 set country unavailable" [-Wcpp]
        #warning "ESP32 set country unavailable"
          ^
Code:
C:\Users\tugal\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\esp32-hal-spi.c: In function 'spiTransferBytesNL':
C:\Users\tugal\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                uint8_t * last_out8 = &result[c_longs-1];
                                      ^
C:\Users\tugal\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                uint8_t * last_data8 = &last_data;
                                        ^



RE: [Arduino IDE demo source code for KC868-A32]--#07-KC868-A32_Web_server_code - admin - 03-06-2023

i am tested with arduino IDE 1.8.19 no any problem for compile.


RE: [Arduino IDE demo source code for KC868-A32]--#07-KC868-A32_Web_server_code - tugalsan - 03-07-2023

(03-06-2023, 08:19 AM)admin Wrote: i am tested with arduino IDE 1.8.19 no any problem for compile.

I installed IDE 1.8.19, and compile. As you have mentioned, there was no compile warning.
Then i looked at prefrences, Compiler warnings are set to none.
If I change it to Default manually, you can see the warnings.
I think, warnings are not important enough that, IDE 1.8.19 comes with CompilerWarning set to None.


RE: [Arduino IDE demo source code for KC868-A32]--#07-KC868-A32_Web_server_code - admin - 03-07-2023

ok, just code can compile successfully is ok.