Sming (main)¶
This is the main Sming Component containing all architecture-independent code. All architecture-specific stuff is in either Sming (Esp8266) or Sming (Host).
Configuration variables¶
Serial Communications¶
-
COM_SPEED
¶ Default baud rate for serial port.
This will recompile your application to use the revised baud rate. Note that this will change the default speed used for both flashing and serial comms. See also Esptool and Terminal for further details.
The default rate for serial ports is 115200 baud. You can change it like this:
make COM_SPEED=921600
Debug information log level and format¶
-
DEBUG_VERBOSE_LEVEL
¶ When compiled in debug mode (:envvar:SMING_RELEASE undefined) there are four debug levels in increasing level of verbosity:
- 0: errors
- 1: warnings
- 2: information (default)
- 3: debug
Change it like this:
make DEBUG_VERBOSE_LEVEL=3
-
DEBUG_PRINT_FILENAME_AND_LINE
¶ Set this to 1 to include the filename and line number in every line of debug output. This will require extra space on flash.
Note
If you change these settings and want them applied to Sming, not just your project, then you’ll need to recompile all components like this:
make components-clean
make DEBUG_VERBOSE_LEVEL=3
Release builds¶
-
SMING_RELEASE
¶ By default, this value is undefined to produce a build with debug output. To build for release, do this:
make SMING_RELEASE=1
This remains in force until you change it back:
make SMING_RELEASE=
Localisation¶
-
LOCALE
¶ Sming can format dates/time values based on a country code identified by this value. This is provided as a #define symbol for your application to use. See Sming/Core/SmingLocale.h for further details.
Components¶
References¶
- Source Code
- Sming (Esp8266) Component
- Sming (Host) Component
- FlashString Component
- HTTP Parser Component
- b64: Base64 Encoding/Decoding Routines Component
- libyuarel Component
- mqtt-protocol-c Component
- SPIFFS for Sming Component
- SSL: Secure Sockets Layer Component
- Terminal Component
- ws_parser Component