Board: Lolin32 Lite
Core Installation version: 1.0.6
IDE name: Platform.io
Description:
I would like to create a wrapper class around the wifi class to provide access to an external API. I don't need the access point/scanning functionality, I want to hide the wifi implementation and I need to reduce my compilation size so I created a class like this:
class WifiApiService : protected WiFiGenericClass, protected WiFiSTAClass { }
But when I compile, I see all classes (WiFiSTAClass, WiFiScanClass, WiFiAPClass) are still compiled too.
There seems to be circular references in the files which makes them dependent on each other i.e. WiFiGenericClass imports WiFi.h and directly uses extern WiFiClass WiFi despite calling it 'Generic'.
Could this be refactored so we can import parts of the wifi stack instead of all of it? The library seems reasonably well organised so I imagine it shouldn't be too difficult to achieve?
Hardware:
Board: Lolin32 Lite Core Installation version: 1.0.6 IDE name: Platform.io
Description:
I would like to create a wrapper class around the wifi class to provide access to an external API. I don't need the access point/scanning functionality, I want to hide the wifi implementation and I need to reduce my compilation size so I created a class like this:
But when I compile, I see all classes (
WiFiSTAClass
,WiFiScanClass
,WiFiAPClass
) are still compiled too. There seems to be circular references in the files which makes them dependent on each other i.e.WiFiGenericClass
importsWiFi.h
and directly usesextern WiFiClass WiFi
despite calling it 'Generic'.Could this be refactored so we can import parts of the wifi stack instead of all of it? The library seems reasonably well organised so I imagine it shouldn't be too difficult to achieve?