System calls
System flags [ disable ]
The system allows to alter certain aspects of its default behavior via the system flags. The following system flags are defined:
SYSTEM_FLAG_PUBLISH_RESET_INFO
: enables publishing of the last reset reason to the cloud (enabled by default)SYSTEM_FLAG_RESET_NETWORK_ON_CLOUD_ERRORS
: enables resetting of the network connection on cloud connection errors (enabled by default)
// EXAMPLE
// Do not publish last reset reason
System.disable(SYSTEM_FLAG_PUBLISH_RESET_INFO);
// Do not reset network connection on cloud errors
System.disable(SYSTEM_FLAG_RESET_NETWORK_ON_CLOUD_ERRORS);
System.enable(system_flag_t flag)
Enables the system flag.
System.disable(system_flag_t flag)
Disables the system flag.
System.enabled(system_flag_t flag)
Returns true
if the system flag is enabled.