These are chat archives for SmingHub/Sming

2nd
Apr 2016
hreintke
@hreintke
Apr 02 2016 10:00
@patrickjahns @avr39-ripe :
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 10:01
@hreintke /me here :)
hreintke
@hreintke
Apr 02 2016 10:01
These are mine in nons:
nonospaths.PNG
RTOS :
rtospaths.PNG
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 10:03
@hreintke thanks, I found env variables in eclipse recently.. it ease setting includes.. thanks for your example..
At first I read you message as "there is a (dangerous) MINE (kind of explosive) in nonos ver of Sming :)) haha.. 2 april is another 1 april :))
hreintke
@hreintke
Apr 02 2016 10:06
:smile:
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 10:08
@hreintke I experiment with last ver of WebSkeletonApp like in PR to separate ApplicationClass as library.. this opens new possibility of writing wifi+web enabled apps with further possibility of costless upgrade when ApplicationClass upgrade..
hreintke
@hreintke
Apr 02 2016 10:08
@avr39-ripe :
I set all my env variables in Eclipse. If I want to use different sdk/nonos/rtos I have different workspace
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 10:09
@hreintke For os-nonos I use different eclipse "Build configuration"
@hreintke take a look (if you have time) at https://github.com/avr39-ripe/DragonMaster/blob/master/app/app.cpp and whole project struct.. part of WebSkeleton is separated to lib/application
hreintke
@hreintke
Apr 02 2016 10:11
@avr39-ripe :
If application class is really generic we might get it in as "platform" within Sming
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 10:11
@hreintke I wish to make such generic application class
hreintke
@hreintke
Apr 02 2016 10:12
@avr39-ripe :
I will take a look at webskeleton this weekend and give my honest remarks.
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 10:12
WE here after some time and some polishig should create such class..
ookay! will wait with hammer prepared :) as you always find what is bad and what done in tottaly wrog way :))
Patrick Jahns
@patrickjahns
Apr 02 2016 14:18
@avr39-ripe
It seems redundant - sming already has a init() method ?
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 14:19
@patrickjahns not Sming, but SDK itself..
Patrick Jahns
@patrickjahns
Apr 02 2016 14:20
It seems still somewhat redundant
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 14:21
so main APPLICATION (whole system in this context) entry point is void init() method, then AppClass init initialize app specific data, or set some initial state..
Patrick Jahns
@patrickjahns
Apr 02 2016 14:21
While writing one's own Application Class is a nice touch for a good structure - it is very specific for each application/use case so in order to be useful one would need to write it's own class
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 14:23
In real practice many people just cut'n'paste code from one project to another.. one basik application functionality is often not very if any different from another..
and.. you can always write your own appclass from scratch
FRAMEWORK is always good and bad.. good - no need to reinvent wheel, bad - there is restriction.. everybody decide when to use or not some generalized solution, or write own one..
Patrick Jahns
@patrickjahns
Apr 02 2016 14:25
If you generalize the application class to a bare minimum to be versatile it`s very raw and empty and this raw/empty structure is as easy copied as it would be a framework
That`s the point - it is a good structure and very well could be a go to example - but as a part of the framework I would most of the time need to override / abstract from it anyway
It's similar to the settings example using spiffs - while quite often you`d find it useful. But to be really used you need to adapt it to your own scenario
Patrick Jahns
@patrickjahns
Apr 02 2016 14:31
In a sense the application class is a more structured approach to having global/static functions and variables - just my 2 cents. :smile: - still liking the structure as an example
Also I wonder what's the difference for you between init() and start() - it's also somewhat redundant since you call them from init() in a linear way
@hreintke
I have the same environment vars - does "String" properly resolve in your eclipse? I wonder if I am missing something - because of this "error" some proper declarations/function calls using String are marked as wrong - which is a bit of annoying when screening trough the code
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 14:38
@patrickjahns Init is just ONCE called, and start can be called several times.
I do not insist to include my app clas t Sming.. I just think many newcommers and oldcommers will find it usefull.. and it can be upgraded later, and if no breacking changes, user application can benefit from being based on app class..
in general - any abstraction, any generalization is not suit for ALL cases.. thus we have plain Sming. And even more - plain SDK..
Moreover we can (of course if community find it useful at all!) create several basic application classes as good starting point for different kind of apps..
hreintke
@hreintke
Apr 02 2016 15:27
This message was deleted
@patrickjahns :
Yes, string does properly resolve within eclipse with me.
Is your issue in application or Sming framework ? Did you rebuild your index after updating ?
Jakub Sobieraj
@sobiso
Apr 02 2016 19:27
where i find esp-open-sdk 1.5.2 for linux ?
Alexander V. Ribchansky
@avr39-ripe
Apr 02 2016 19:28
@sobiso https://bintray.com/artifact/download/kireevco/generic/esp-alt-sdk-v1.5.0.258-linux-x86_64.tar.gz then just change esp-sdk to 1.5.2 downloaded from espressif bbs
Jakub Sobieraj
@sobiso
Apr 02 2016 19:33
thx
Yegor
@Bravo13
Apr 02 2016 20:25
One small question. If I have ESP12 with 512kBit flash waht should I type in SPI_SIZE? And is it possible to use OTA with 512kB flash at all?
Yegor
@Bravo13
Apr 02 2016 20:51
Also repo in chocolate for Win has old ESP SDK... Its esp_iot_sdk_v1.3.0_15_08_08
Patrick Jahns
@patrickjahns
Apr 02 2016 20:53
@Bravo13
it really depends on the final application size - if two roms will fit in 512KB flash then yes - if they wont fit into 512KB then you wont be able to use OTA