These are chat archives for SmingHub/Sming

24th
Apr 2018
slaff
@slaff
Apr 24 2018 10:00
@ololoshka2871 We will probably move the max and mix macros only to be available to the old Arduino libraries.
@riban-bw Try to call make -C %SMING_HOME% dist-clean. And then go to samples/Basic_Ssl and run make.
slaff
@slaff
Apr 24 2018 11:02
@ololoshka2871 I tried to put some order and created this PR #1368. Please, check if it fixes the issues that you have.
slaff
@slaff
Apr 24 2018 13:30
@/all Our plan is to release SmingHub/Sming#1340 next week. Help us test it and report any issues that you have found.
ololoshka2871
@ololoshka2871
Apr 24 2018 15:46

@slaff I just tested building with your changes. The build is successful, with the removed guardians

#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif

Thanks for your work!

slaff
@slaff
Apr 24 2018 15:48
@ololoshka2871 Glad to hear that. My I ask what is the product where you use Sming? is there a website for the product?
ololoshka2871
@ololoshka2871
Apr 24 2018 16:15
@slaff Of course I can tell, if interesting.
This is a small device that contains 4 DC current meters INA219, display SSD1309 and a voltage regulator based on the DC-DC converter like that https://www.maximintegrated.com/en/images/appnotes/818/818Fig03.gif
The device can measure the current in four channels, set the voltage for all four channels together, display this data on the display.
There is a small web server. I have prepared all the files statically. I packed them to gzip and push to SPIFFS as shown in the example HttpServer_ConfigNetwork. The web application communicates with the device via the WebSocket to transfer current data and control commands.
ololoshka2871
@ololoshka2871
Apr 24 2018 16:21
As you can see, this is a very specific device, and it is only for internal use within our company, not for sale.
laurentppol
@laurentppol
Apr 24 2018 20:55
hi, simple question: how to read file in SPIFFS "line by line"? "readLN" (this is for building HTML file in which variable part will be huge, so I don't use fileTemplate).