These are chat archives for SmingHub/Sming

5th
Mar 2017
riban-bw
@riban-bw
Mar 05 2017 07:40
Just reported #1008 - CI build against SDK 2.0.0 failing. Seems to be an issue with accessing esptool2. This may block PR's being accepted (like #1007 which fixes smartConfig :-)).
riban-bw
@riban-bw
Mar 05 2017 11:27
Does Sming support STL, e.g. uClibc++ or similar standard template library implementation? Do we want it to? I don't know how best to implement std::vector and similar. I don't like adding fixed sized arrays to hold more than (wasted space) or less then (runtime error or program limitations) required elements.
Dan-McG
@Dan-McG
Mar 05 2017 12:18
Hello - quick newbie questions - I'm on Archlinux and I've burnt Basic_Blink to a ESP8266 with a 1MB flash. No probs. When the python miniterm pops up it shows there's also a softAP with DHCP running. Is that normal or is there some residual code on the ROM? I've tried 'make flashinit' but it won't reconnect after the first half (I'm using external regulated power), so I do it manually but with same result. I'm not sure what's in 0x00000.bin, is it just the same as SDK eagle.flash.bin or is it some custom bootloader with Access Point code? Also is it recommended to reposition the main irom code as per SDK for a 1MB module by editing Makefile-project.mk or stick with Sming default memory positions?
riban-bw
@riban-bw
Mar 05 2017 14:18
@Dan-McG The ESP8266 has some configuration space that defines if the WiFi AP / STA are running and it persists between reboots. This config space is not overwritten by flashing so, if AP was enabled before, it will still be enabled. Add a line to your init code: WifiAccessPoint.enable(false, true); which will disable AP (first param=false) and save config to persistent storage (second param=true).
Regarding second question: Stick with Sming defaults. There is some work to simplify this which is due to drop in the next stable release (next week I think).
riban-bw
@riban-bw
Mar 05 2017 14:27
@raburton When I enable rBoot, SPIFFS cannot be read. I get read errno -10011 shown in serial (debug) output. I am using rboot config from Basic_rBoot Makefile-user.mk on a NodeMCU (ESP-12). Any ideas?
Dan-McG
@Dan-McG
Mar 05 2017 18:18
that's very helpful, thanks @riban-bw!