You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If (and this is a big if) the cost of always enabling IOTSA_WITH_PLACEHOLDERS is not too big (in code size especially, but also runtime efficiency) it may be worthwhile to always enable this.
Then we could have classes IotsaApplication and IotsaMod that would be much simpler (with the current ones renamed to IotsaBaseApplication and IotsaBaseMod although the latter name is taken already).
The new IotsaApplication would automatically contain all auxiliary modules (Battery, Files, FileBackup, FilesUpload, Ota, and maybe also NTP and User/MultiUser), but they would be placeholdered-out if those features were not enabled through IOTSA_WITH_xxxxx.
The new IotsaMod would include support for Rest, COAP and API, again placeholdered-out if disabled.
One huge advantage is that a lot of #ifdefs in user code could go away. So could a lot of boilerplate in the main programs (all the specifications of the standard modules).
It could also make #14 more feasible, because of the unified base module (which would include or not include functionality based on the IOTSA_WITH_xxxx that are used.
The text was updated successfully, but these errors were encountered:
If (and this is a big if) the cost of always enabling
IOTSA_WITH_PLACEHOLDERS
is not too big (in code size especially, but also runtime efficiency) it may be worthwhile to always enable this.Then we could have classes
IotsaApplication
andIotsaMod
that would be much simpler (with the current ones renamed toIotsaBaseApplication
andIotsaBaseMod
although the latter name is taken already).The new
IotsaApplication
would automatically contain all auxiliary modules (Battery, Files, FileBackup, FilesUpload, Ota, and maybe also NTP and User/MultiUser), but they would be placeholdered-out if those features were not enabled throughIOTSA_WITH_xxxxx
.The new
IotsaMod
would include support for Rest, COAP and API, again placeholdered-out if disabled.One huge advantage is that a lot of
#ifdef
s in user code could go away. So could a lot of boilerplate in the main programs (all the specifications of the standard modules).It could also make #14 more feasible, because of the unified base module (which would include or not include functionality based on the
IOTSA_WITH_xxxx
that are used.The text was updated successfully, but these errors were encountered: