khoih-prog / WiFiNINA_Generic

Enables WiFiNINA network connection (local and Internet) for SAM DUE, SAMD21, SAMD51, Teensy, AVR Mega, STM32, RP2040-based boards, etc. in addition to Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000, Arduino UNO WiFi Rev.2 , Nano 33 IoT, Nano_RP2040_Connect. Now with fix of severe limitation to permit sending much larger data than total 4K
GNU General Public License v3.0
38 stars 13 forks source link

Storage class #4

Closed AppsByDavideV closed 4 years ago

AppsByDavideV commented 4 years ago

Hello, Your library is great, but the storage part does not work, The original WiFinina does. It looks something related to the WiFi_Drv class.

C:\Users\vdavi\AppData\Local\Temp\arduino_build_453956\sketch\Server.ino.cpp.o: In functionsetup':

C:\Users\vdavi\Documents\Arduino\libraries\WiFiNINA_Generic\src/utility/wifi_drv.h:344: undefined reference to `WiFiDrv::fileOperation(unsigned char, char const, unsigned char, unsigned long, unsigned char, unsigned long)'

C:\Users\vdavi\Documents\Arduino\libraries\WiFiNINA_Generic\src/utility/wifi_drv.h:337: undefined reference to `WiFiDrv::fileOperation(unsigned char, char const, unsigned char, unsigned long, unsigned char, unsigned long)'

C:\Users\vdavi\AppData\Local\Temp\arduino_build_453956\libraries\WiFiNINA_Generic\WiFiStorage_Generic.cpp.o: In function `WiFiStorageClass::exists(char const, unsigned long)':

C:\Users\vdavi\Documents\Arduino\libraries\WiFiNINA_Generic\src\utility/wifi_drv.h:344: undefined reference to `WiFiDrv::fileOperation(unsigned char, char const, unsigned char, unsigned long, unsigned char, unsigned long)'

collect2.exe: error: ld returned 1 exit status`

Maybe you could have a look into that. Thanks a lot

Davide

khoih-prog commented 4 years ago

@AppsByDavideV

Thanks for using the library and encouraging words.

The Storage class is new and I really haven't got time to verify and test the feature. It's good that you found out the issue anf I'll certainly investigate and fix the bug.

Could you pls help by posting the Server.ino sketch to save me time to recreate the issue to fix the bug.

Regards,

khoih-prog commented 4 years ago

@AppsByDavideV

I see the issue now. Will fix now and post onto Master, and new v1.6.2 and inform you.

khoih-prog commented 4 years ago

Hi @AppsByDavideV

The new WiFiNINA_Generic v1.6.2 fixes the issue.

You can use WiFiStorage example to test and verify.

This is the debug terminal output when running the WiFiStorage example on SAMD_NANO_33_IOT

Start WiFiStorage on SAMD_NANO_33_IOT
WiFiStorage on SAMD_NANO_33_IOT is OK if you see this long line.

Your contribution was noted in Contributions-and-Thanks