These are chat archives for SmingHub/Sming
@mikee47 Thanks for that tip, the F macro without leading underscore works better. For some strange reason I changed all my literals to _F("xxx"), thinking that _F was a better thing to use.
In sming, both macros are used, eg:
commandOutput->print(_F("Welcome to the Tcp Command executor\r\n")); or println(_F("Debug started"));
String system = F("system");
Do you have some advice for when to use _F("literal") and when to use just F("literal")?
char* s = _F("string")will not work because the temporary will be out of scope after the statement, hence
swill point to garbage.
Hey! SDK 2.1.0 should be supported with the current master, right?
@SvenLuebke No, SDK 2.0.0 is the only supported SDK from the v2 series. The next one is v3.0.0. In the Readme you will find the following text:
SDK 3.0+: (default: OFF) In order to use SDK 3.0.0 or newer you should set one environment variable before (re)compiling Sming AND applications based on it. The variable is SDK_BASE and it should point to $SMING_HOME/third-party/ESP8266_NONOS_SDK. For Windows you need to do: set SDK_BASE %SMING_HOME%//third-party/ESP8266_NONOS_SDK For Linux(bash) you need to do: export SDK_BASE="$SMING_HOME/third-party/ESP8266_NONOS_SDK" Read the comments from this URL for known issues. This feature is still experimental which means that we still do not recommend it in production.