Thank _you_ for watching, I'm glad you find the vid helpful! I haven't done an SPIFFS+ESP32 vid yet, but the code I wrote for the ESP8266 should port over. Let me know if that isn't the case.
Isn't there a little bug in the ESP32 code? The variable T is passed by value to the method. How does the return value get back into T. Shouldn't it be T=function() or function(&T)?
Good point. Remember that there are two ways to pass by reference. You can give the function the address directly (the function would use * in its argument), or you can give the function the variable itself (the function would use & in its argument). For review: www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.cbclx01/cplr233.htm
Thanks, Ali! There are two different macros defined when you compile using the ESP32 core for Arduino: ESP32 and ARDUINO_ARCH_ESP32. The second one relies on people correctly following the installation instructions (using the board manager), so that the architecture folder has the right name. I have seen instances where failing to do that creates a few problems, so I tend to use the first macro.
WOW, this is a mouth full. EXCELLENT code, loving it!
I always liked your videos. Thank you!
Vlad, thank you for the kind comment. I'm happy that you find the videos useful!
Excellent 👍🏼
Excellent, helpful tips! Thanks. Have you done a SPIFFS programming example tutorial with esp32?
Thank _you_ for watching, I'm glad you find the vid helpful! I haven't done an SPIFFS+ESP32 vid yet, but the code I wrote for the ESP8266 should port over. Let me know if that isn't the case.
nice video. thank you.
_Thank you_ for watching, and for the kind comment!
How can esp8266 firebase Arduino Library replace with esp32 firebase Arduino Library?
Thanks, Man
I’m glad you liked it!
Isn't there a little bug in the ESP32 code? The variable T is passed by value to the method. How does the return value get back into T. Shouldn't it be T=function() or function(&T)?
Good point. Remember that there are two ways to pass by reference. You can give the function the address directly (the function would use * in its argument), or you can give the function the variable itself (the function would use & in its argument).
For review: www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.cbclx01/cplr233.htm
nice and effective
i have seen some other kind of declaring the boards to use like this:
#ifdef ARDUINO_ESP32_DEV
hmm how is that?
Thanks, Ali! There are two different macros defined when you compile using the ESP32 core for Arduino: ESP32 and ARDUINO_ARCH_ESP32.
The second one relies on people correctly following the installation instructions (using the board manager), so that the architecture folder has the right name. I have seen instances where failing to do that creates a few problems, so I tend to use the first macro.
i see , thanks for the info :)
esp 32 will work as a broker?
Yes.
How to do if you have Code plz send me
@@madhusudhang8254 I'll try to make a video about it soon!
OK