These are chat archives for SmingHub/Sming

25th
Nov 2015
Dmitry Kireev
@kireevco
Nov 25 2015 06:08
@alonewolfx2 maybe don’t preformat spiffs, and do it on the device?
alonewolfx2
@alonewolfx2
Nov 25 2015 06:22
i already disabled spiffs
Dmitry Kireev
@kireevco
Nov 25 2015 06:22
ah...
maybe check in the app.o if all libraries are used, if not - adjust build flags
alonewolfx2
@alonewolfx2
Nov 25 2015 06:23
min rboot firmware size is 234kb
Dmitry Kireev
@kireevco
Nov 25 2015 06:23
but most likely they are all linked properly
alonewolfx2
@alonewolfx2
Nov 25 2015 06:24
i removed unnecessary library on sming libraries folder so it cant link right ?
Dmitry Kireev
@kireevco
Nov 25 2015 06:30
yeah. I guess
alonewolfx2
@alonewolfx2
Nov 25 2015 06:32
so how can i reduce
i am asking this because i have alot of 512kb devices and i need to rboot :)
Dmitry Kireev
@kireevco
Nov 25 2015 06:33
yeah… I understand
talk to @raburton
Dmitry Kireev
@kireevco
Nov 25 2015 06:46
check this out
sdk build without crosstool-ng
:)
almost working
on all platforms
alonewolfx2
@alonewolfx2
Nov 25 2015 06:47
almost :D
how can i build on windows
Dmitry Kireev
@kireevco
Nov 25 2015 06:48
make
it will probably break somewhere in the middle
but you can try
I was able to build xtensa compiler on all 3 platforms using a pure build.sh
alonewolfx2
@alonewolfx2
Nov 25 2015 06:50
very good
i started
Dmitry Kireev
@kireevco
Nov 25 2015 06:50
but now, I’m moving to a makefile approach, similar to esp-open-sdk
MAYBE we could merge it in into esp-open-sdk
later
when it works
alonewolfx2
@alonewolfx2
Nov 25 2015 06:51
it can be really good
Dmitry Kireev
@kireevco
Nov 25 2015 06:51
but it will help build a truly cross-platform toolchain
alonewolfx2
@alonewolfx2
Nov 25 2015 06:52
blob
but you probalby have everything already
alonewolfx2
@alonewolfx2
Nov 25 2015 06:54
blob
Dmitry Kireev
@kireevco
Nov 25 2015 06:55
yeah, it goes to some point for sure...
alonewolfx2
@alonewolfx2
Nov 25 2015 06:56
what is disk size and time requirement to compile
i am on i5 machine and folders in ramdisk
Dmitry Kireev
@kireevco
Nov 25 2015 06:56
it will break on c_types-c99.patch that is missing
(just pushed it)
@alonewolfx2 i don’t know, maybe 2g
of disk
time - not too bad, maybe 30 min
4 core, ramdisk
something like that
alonewolfx2
@alonewolfx2
Nov 25 2015 06:57
ups it will fail
i have 1.4gb on ramdisk.
Dmitry Kireev
@kireevco
Nov 25 2015 06:57
I don’t know for sure
actually, let me check my old successful build, I’ll tell you
alonewolfx2
@alonewolfx2
Nov 25 2015 06:57
ok
Dmitry Kireev
@kireevco
Nov 25 2015 06:58
actually, i’t’s close to 4G
the biggest is gcc-extensa
alonewolfx2
@alonewolfx2
Nov 25 2015 06:58
ok soo i will re start on normal disk
Dmitry Kireev
@kireevco
Nov 25 2015 06:58
pull new
I updated
alonewolfx2
@alonewolfx2
Nov 25 2015 06:59
ok
Dmitry Kireev
@kireevco
Nov 25 2015 07:00
this one https://github.com/kireevco/packages/tree/master/xtensa-lx106-elf already working on all platforms, but it is just a toolchain
alonewolfx2
@alonewolfx2
Nov 25 2015 07:00
lastest one cant work
blob
Dmitry Kireev
@kireevco
Nov 25 2015 07:01
oops, didn’t add the file
done now
git pull
zhivko
@zhivko
Nov 25 2015 07:11
@ystrem have you build sming lib? You need to cd into sming/sming and then make inside sming/sming
alonewolfx2
@alonewolfx2
Nov 25 2015 07:16
@kireevco
Dmitry Kireev
@kireevco
Nov 25 2015 07:16
?
alonewolfx2
@alonewolfx2
Nov 25 2015 07:16
make[3]: Nothing to be done for `install-exec-am'.
 /usr/bin/mkdir -p '/build/mpc/include'
 /usr/bin/install -c -m 644 ../src/mpc.h '/build/mpc/include'
make[3]: Leaving directory `/dl/mpc-1.0.2/build'
make[2]: Leaving directory `/dl/mpc-1.0.2/build'
make[1]: Leaving directory `/dl/mpc-1.0.2/build'
git clone https://github.com/fpoussin/esp-binutils.git /dl/esp-binutils
make: git: Command not found
make: *** [/dl/esp-binutils] Error 127
Dmitry Kireev
@kireevco
Nov 25 2015 07:16
ha
no git
alonewolfx2
@alonewolfx2
Nov 25 2015 07:17
can you add into the make ?
Dmitry Kireev
@kireevco
Nov 25 2015 07:17
well, it’s a chicken & egg
you are supposed to have it when cloinng it
choco install git.install --params="/NoAutoCrlf" -y
I’ll do something like that prior make
maybe something like autoconf
install git like taht
alonewolfx2
@alonewolfx2
Nov 25 2015 07:20
ok i think you need to add into the makefile because of clean install things
Dmitry Kireev
@kireevco
Nov 25 2015 07:20
it’s not just git
other things too. I will do it separately
(and it’s different for different systems, so main makefile is not a good idea)
alonewolfx2
@alonewolfx2
Nov 25 2015 07:28
100%[======================================>] 2,158,645    599K/s   in 3.5s

2015-11-25 09:22:49 (599 KB/s) - `file.php@id=838' saved [2158645/2158645]

unzip -q -o esp_iot_sdk_v1.4.0_15_09_18.zip
unzip:  cannot find or open esp_iot_sdk_v1.4.0_15_09_18.zip, esp_iot_sdk_v1.4.0_15_09_18.zip.zip or esp_iot_sdk_v1.4.0_15_09_18.zip.ZIP.
make: *** [esp_iot_sdk_v1.4.0/.dir] Error 9
Dmitry Kireev
@kireevco
Nov 25 2015 07:29
what are the contents of dl?
alonewolfx2
@alonewolfx2
Nov 25 2015 07:30
i tried clean install when i install git
hreintke
@hreintke
Nov 25 2015 07:33
@alonewolfx2 : @kireevco :
How do you think will a new toolchain will lower the amount of space for an application as the major part is coming from pre-compiled libraries ?
Dmitry Kireev
@kireevco
Nov 25 2015 07:33
@hreintke I don’t think it will lower the amount of space
:)
alonewolfx2
@alonewolfx2
Nov 25 2015 07:35
me too :D
Dmitry Kireev
@kireevco
Nov 25 2015 07:35
lol
alonewolfx2
@alonewolfx2
Nov 25 2015 07:35
what is d1 @kireevco
Dmitry Kireev
@kireevco
Nov 25 2015 07:35
where?
hreintke
@hreintke
Nov 25 2015 07:36
OK, then I misunderstood the first part of your conversation.
alonewolfx2
@alonewolfx2
Nov 25 2015 07:36
blob
Dmitry Kireev
@kireevco
Nov 25 2015 07:36
@alonewolfx2 I see… wget doesn’t save to a file
probably windows -O and -o bug
(FEATURE)
alonewolfx2
@alonewolfx2
Nov 25 2015 07:37
but it save before choco git
Dmitry Kireev
@kireevco
Nov 25 2015 07:37
i’ll replace all short keys with their full keys
actually… this specific file is downloaded differently
can you show me your esp-alt-sdk directory?
@alonewolfx2
Dmitry Kireev
@kireevco
Nov 25 2015 07:44
…+ one more update
tesing again
Richard Antony Burton
@raburton
Nov 25 2015 08:15
@alonewolfx2 i'm not sure you can reduce the size much, the linker should remove any code that isn't used from the rom image, so the only way to reduce it is to remove stuff you are using (even if you didn't realise you were using it!)
for example removing debug stuff
open-home-automation
@open-home-automation
Nov 25 2015 08:21
Hi guys
I am looking at the MySensors library from Arduino
Would you think it is feasible to port such a library?
And are they standardized Sming ways to solve for example PGM stuff?
It uses RF24 which I noticed already has a port in Sming, which is a good thing
alonewolfx2
@alonewolfx2
Nov 25 2015 08:28
I think esp with nrf24 isn't good idea
Because of same 2.4ghz band
Also nrf24+uc same price with esp
Dmitry Kireev
@kireevco
Nov 25 2015 08:35
@alonewolfx2 I agree on the frequency.
open-home-automation
@open-home-automation
Nov 25 2015 08:36
@alonewolfx2 I was told you can set the nrf to use a channel just out of the wifi range
my goal is to connect nrf24 type sensors to the ESP which I use as main controller
Unless there is a way to make battery powered window (open/close) sensors with ESP which can last for a year like nrf can...
Dmitry Kireev
@kireevco
Nov 25 2015 08:42
@open-home-automation @alonewolfx2 isn’t deep sleep an option? or consumtion is still too bad?
open-home-automation
@open-home-automation
Nov 25 2015 08:44
@kireevco How long would it take for an ESP to wake up from deep sleep, connect to wifi, connect to MQTT and send an MQTT message, on the opening of a window
Jakub Sobieraj
@sobiso
Nov 25 2015 09:03
hi all
I have problem with POST request
Heap: 
34008 
1
Connected? :5
0
onAccept state: 0 K=0
Free heap size=33560, K=0
+TCP connection
timeout updating: 70 -> 90
TcpServer onClient  192.168.1.40, activeClients = 1

path=/ajax/save-rollers
Host === 192.168.1.11
Content-Length === 395
Content-Type === application/x-www-form-urlencoded; charset=UTF-8
Item: group_saved = 2
Item: roller_saved = 0
parsed
Request: POST, 395 bytes
Item: data = NobwRAlgJmBcAMAaMA7OYBKB7ANgUwBcBDAAnjGSLgEYBfRcaG5NWTXQ06isK2OhpBiwATC3TZ8xEiJ58BjYQGZxbSZxJK5NeorgAWVeyml92-rqFwArEfXTr5hVdgA2Ox2munlprADsHiYk-j6CfgAcQRoRYXqwAJzR0glxLtRIqBKeXOSUOuHC1NTJXNz5FoU0YllqOSTUshXOftQqtcYabWmthh32XGbNvkW2-fXUjsNV-O7jwdTe0-HUgfNdocvpUevS1LFbrUm7XKmHwiKZrJ3Slz0XJScy5bwF8SI11wMyTa+V7+0vvURFpznARH0gcEIfdwWMoRoRFM-i0LnMEbcliiRuC1hjSCJNtiZiIdviZAdie9juSRGdsQBdIA
Fatal exception (0):
epc1=0x2b615479, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 22580, room 16 
tail 4
chksum 0x57
load 0x3ffe8000, len 852, room 4 
tail 0
chksum 0xf2
load 0x3ffe8358, len 10132, room 8 
tail 12
chksum 0xfd
csum 0xfd
��뢁use rtc mem data
rl+TCP connection
timeout updating: 70 -> 65535
Server timeout updating: 40 -> 90
+TCP connection
alonewolfx2
@alonewolfx2
Nov 25 2015 09:08
@open-home-automation ~1300ms. deepsleep can be option it's consuming 15ua on deepsleep
But of course atmega328 has interrupted wakeup and it's fast to wakeup but o don't know how much time need for first data send with nrf24.
But if esp is main controller than you can use it of course is good solution
open-home-automation
@open-home-automation
Nov 25 2015 09:15
@alonewolfx2 I checked the interference again an rf24 can use 2.476Ghz which is past channel 13 of wifi. So this should be ok. Atmega will most certainly be faster than 1300ms
Jakub Sobieraj
@sobiso
Nov 25 2015 09:19
How to check what is causing the error?
Dmitry Kireev
@kireevco
Nov 25 2015 09:42
@alonewolfx2 is 1300ms - wifi?
what is wakeup without wifi? can we disable it and save time?
wake up, do measurements, go to sleep. then once an hour wake up for uploading data
hreintke
@hreintke
Nov 25 2015 10:49
@sobiso :
What is the size of the post data ? If larger than 256 there is an issue with the debugf statement.
See #409 for the solution, already merged into develop.
Jakub Sobieraj
@sobiso
Nov 25 2015 10:52
@hreintke yes, it is larger than 256
ok so i must pull develop branch ?
hreintke
@hreintke
Nov 25 2015 10:55
@sobiso :
Then the options are : 1/ stay on current release and update application/transfer 2/ implement #409 into your environment 3/ Use develop branch
@sobiso : #409 is a one line update in the sming code, easy to add, only updates debug output -> fully compatible with current release. I think it is the easiest solution.
If you look at the PR, also easy to update the sming code yourself. then you don't need to include a PR.
slaff
@slaff
Nov 25 2015 11:04

@open-home-automation

How long would it take for an ESP to wake up from deep sleep, connect to wifi, connect to MQTT and send an MQTT message, on the opening of a window

Between 700ms and 7 seconds. No DNS resolution - faster, closer Wifi Router - faster, no SSL - much faster and so on..

Jakub Sobieraj
@sobiso
Nov 25 2015 11:05
@hreintke works fine :D you are my hero
open-home-automation
@open-home-automation
Nov 25 2015 11:07
@slaff Do we have SSL/HTTPS in Sming?
alonewolfx2
@alonewolfx2
Nov 25 2015 11:08
@open-home-automation not yet
@kireevco open window sensor need wifi for sending status when it opened. BTW if you just log and send per hour ofcourse it's faster than wifi. Under ~1300ms when disabled wifi
hreintke
@hreintke
Nov 25 2015 11:10
@sobiso : glad it helped you. And nice to notice that my short term memory still works OK. :smile:
alonewolfx2
@alonewolfx2
Nov 25 2015 11:10
70-80 ms
open-home-automation
@open-home-automation
Nov 25 2015 11:11
@alonewolfx2 A while ago I was looking for basic http authentication. Is someone looking into that? I suppose you guys get tons of requests like this :-)
And to make it more fun a way to connect to a portal-protected wifi network and automagically log in :-)
alonewolfx2
@alonewolfx2
Nov 25 2015 11:12
I am trying to implement basic http Auth :D
But also I am trying to port nextion library too :D
And I dondurdum have much time for developing due to main work
open-home-automation
@open-home-automation
Nov 25 2015 11:13
I would know which one of those to do first :-)
Coming back to libraries. If I port library X to work on Sming, what is the path to follow to get it in the Sming repo?
I suppose there are coding rules in place?
And rules concerning how to do the porting?
alonewolfx2
@alonewolfx2
Nov 25 2015 11:15
Sming/sming/libraries is path
Probably nextion first
open-home-automation
@open-home-automation
Nov 25 2015 11:16
No rules?
alonewolfx2
@alonewolfx2
Nov 25 2015 11:17
Rules mean? If you can port and it's working without error you can add it. But you need to class architecture
open-home-automation
@open-home-automation
Nov 25 2015 11:18
For example I just got the MySensors working a minute ago
I deleted unused files from the source
Dmitry Kireev
@kireevco
Nov 25 2015 11:18
@hreintke got it. What are other options with the window open sensor? Interrupts?
open-home-automation
@open-home-automation
Nov 25 2015 11:18
and made modifications
do they need to be commented for future updates or not (I call that a rule)
do I need to include all files and find a way to ignore unused ones, also for future updates
that can also be called a rule
or can I just do whatever makes me happy and makes the lib work as long as copyright is respected?
alonewolfx2
@alonewolfx2
Nov 25 2015 11:35

or can I just do whatever makes me happy and makes the lib work as long as copyright is respected?

good option :) and you can

open-home-automation
@open-home-automation
Nov 25 2015 11:35
cool
alonewolfx2
@alonewolfx2
Nov 25 2015 11:35
and same usage and functions as long as respect
open-home-automation
@open-home-automation
Nov 25 2015 11:37
@alonewolfx2 the only thing left is to figure out is how to get strtok_r and utoa in a clean way. Now I just took the implementation from the internet and pasted it in the files that need it. But it should be somewhere in the SDK right?
slaff
@slaff
Nov 25 2015 12:05

@open-home-automation

Do we have SSL/HTTPS in Sming?

No, not yet.

hreintke
@hreintke
Nov 25 2015 14:03
@open-home-automation :
If you could write some "rules" which you suggest to use on libraries and place them on the wiki we can take that as a starting point for future contributions.
hreintke
@hreintke
Nov 25 2015 14:11
@open-home-automation :
One of the important items to consider in porting from Arduino to Sming is the "looping" vs "callback" design principles of both. In order not to get WDT resets and other inconveniences the use of all delay() functionality in the libraries and example should be replaced by event callbacks.
Alexander V. Ribchansky
@avr39-ripe
Nov 25 2015 14:49
Hello! I'v made little patch to Makefile-project.mk to replace esptool.py by esptool2 for rBootLESS projects.. PR #447 :) comments welcome :)
alonewolfx2
@alonewolfx2
Nov 25 2015 14:51
@avr39-ripe good point
Dmitry Kireev
@kireevco
Nov 25 2015 15:12
So, is esptool2 a drop in replacement or syntax is completely different?
Looks like it is meant to be a drop in replacement @raburton
hreintke
@hreintke
Nov 25 2015 15:20
@kireevco : like I said before in this chat :
No, it is not a drop in replacement. It has completely different syntax
Dmitry Kireev
@kireevco
Nov 25 2015 15:25
Sorry, I don't think I saw. Why not make it a drop in replacement so it can be compatible with other tools?
Dmitry Kireev
@kireevco
Nov 25 2015 15:31
alonewolfx2
@alonewolfx2
Nov 25 2015 15:36
@kireevco he has own boot and own tool :)
robotiko
@robotiko
Nov 25 2015 15:44
@all hi people yesterday @alon24 post here about his new lib https://github.com/alon24/InfoScreens
I have been playing with it
is very cool stuff
rigth now works with OLED ssd1306 display
it is a high level lib for managing info screen on a simple lcd
led define screens and contents.. as templates.. soemthing conceptually as nextion display ..
ystrem
@ystrem
Nov 25 2015 15:46
@zhivko nope
robotiko
@robotiko
Nov 25 2015 15:46
can feed infor updates .. and the display will be updated
allows to chain screens .. and cna move from one to another with a button switch
cna see it workin in the project video to get a better idea..
but is a great abstraction for lcd
;)
alonewolfx2
@alonewolfx2
Nov 25 2015 15:53
good work
@robotiko but can we use that library with biger screen like ili9341
robotiko
@robotiko
Nov 25 2015 15:53
there is a driver folder to add more displays..
@alon24 was workign on that
alonewolfx2
@alonewolfx2
Nov 25 2015 15:54
maybe nextion too :))
robotiko
@robotiko
Nov 25 2015 15:55
could be wired ..
but .. nextion as really nice editor :D
alonewolfx2
@alonewolfx2
Nov 25 2015 15:55
right :D
hreintke
@hreintke
Nov 25 2015 15:55
@open-home-automation :
I suppose you are questioning http client basic authorisation ?
alonewolfx2
@alonewolfx2
Nov 25 2015 15:56
@hreintke something like that
hreintke
@hreintke
Nov 25 2015 15:57
What is "something like that" ?
robotiko
@robotiko
Nov 25 2015 15:57
:smile:
alonewolfx2
@alonewolfx2
Nov 25 2015 15:58
he need https actually but he said basic authentication can be good
Dmitry Kireev
@kireevco
Nov 25 2015 15:58
@alonewolfx2 I’ll be home tomorrow, and I can’t wait to see that magical screen that you showed me before
alonewolfx2
@alonewolfx2
Nov 25 2015 15:58
nextion?
Dmitry Kireev
@kireevco
Nov 25 2015 15:58
I think so
robotiko
@robotiko
Nov 25 2015 15:58
@kireevco ... magicla screen is nextion
or mushroom display ? ;D
Dmitry Kireev
@kireevco
Nov 25 2015 15:59
mushroommm…. hmmm
I’m going to infected mushroom when back home.. can’t wait!!!
robotiko
@robotiko
Nov 25 2015 15:59
is the only "magical device" I knwo
alonewolfx2
@alonewolfx2
Nov 25 2015 15:59
@kireevco i didnt fully port it yet
Dmitry Kireev
@kireevco
Nov 25 2015 16:01
can anyone tell me what is required for HTTPS?
why it’s been such a long time and no one attempted to implement it?
robotiko
@robotiko
Nov 25 2015 16:01
sdk
certs and stuff
there are examples in sdk 1.4
and some people got it working
but not supported by sming yet
however any serious iot.. should use it
hreintke
@hreintke
Nov 25 2015 16:03
@alonewolfx2 : @open-home-automation
So my question still is : Is it Http_client basic authentication ?
That uses only one header in the http request
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
so If you know the base64 code of your username:password it can be done already with current implementation.
and if we want to make it "user-friendly" we can add a base64 class and one additional http_client fucntion
Dmitry Kireev
@kireevco
Nov 25 2015 16:07
@robotiko yes. https - first thing that prevents sming to be used by enterprise/small business
robotiko
@robotiko
Nov 25 2015 16:08
yup
hreintke
@hreintke
Nov 25 2015 16:08
@kireevco : @kireevco :
Are those examples based/on top of espressif network code ?
Dmitry Kireev
@kireevco
Nov 25 2015 16:08
it HAS to be on the roadmap (at least).
robotiko
@robotiko
Nov 25 2015 16:08
@kireevco ESP arduino support https
;)
Dmitry Kireev
@kireevco
Nov 25 2015 16:08
well, that would be a decision of a business :)
robotiko
@robotiko
Nov 25 2015 16:08
supe
sure
Dmitry Kireev
@kireevco
Nov 25 2015 16:08
IMHO wrong priorities here :(
hreintke
@hreintke
Nov 25 2015 16:08
@robotiko : they are on espressif network not lwip like sming
robotiko
@robotiko
Nov 25 2015 16:10
@hreintke don't know what that means at the end
Dmitry Kireev
@kireevco
Nov 25 2015 16:10
means something for the end-user
«it has HTTPS»
crosofg
@crosofg
Nov 25 2015 16:10
Is there a way to execurte following code in one istruction ?
PWM.analogWrite(PIN1, high );
PWM.analogWrite(PIN2, med);
PWM.analogWrite(PIN3, low );
by register manipulation
Dmitry Kireev
@kireevco
Nov 25 2015 16:11
@crosofg isn’t it supposed to be executed in async, at the same time?
hreintke
@hreintke
Nov 25 2015 16:12
@robotiko : espressif has written a software layer on top of the base LWIP (which is a open/standard).
Sming is also (and not compatible) on top of LWIP.
crosofg
@crosofg
Nov 25 2015 16:13
@kireevco is it? i didnt know
robotiko
@robotiko
Nov 25 2015 16:13
@hreintke that means.. sming is not on top of espressif code but on top of the cource usign the extracted libs etc
and arduino sits on top of espressif itself?
so anything coded by espressiv that is not on LWIP base.. will never be in sming?
Dmitry Kireev
@kireevco
Nov 25 2015 16:14
@crosofg dunno, but sming is supposed to be async

@alonewolfx2 will

PWM.analogWrite(PIN1, high );
PWM.analogWrite(PIN2, med);
PWM.analogWrite(PIN3, low );

be executed at the same time?

hreintke
@hreintke
Nov 25 2015 16:17
@robotiko : for networking functionality we will need to investigate what/how we can support.
for all other functionality sming is using the espressif SDK api's
robotiko
@robotiko
Nov 25 2015 16:31
@hreintke yup
this is a quite relevant step
ystrem
@ystrem
Nov 25 2015 16:34
Can someone help me with eclipse on W10 ?
alonewolfx2
@alonewolfx2
Nov 25 2015 16:58
@ystrem I am using eclipse on win10
ystrem
@ystrem
Nov 25 2015 16:59
I tried to compile, but without success ...
alonewolfx2
@alonewolfx2
Nov 25 2015 16:59
@hreintke yes you are right about base64. Can you add it? And is headers working correctly
@kireevco not the same time. It's executing one by one
@ystrem what is error log
ystrem
@ystrem
Nov 25 2015 17:00
So I made VM with ubuntu, compiled Sming and if I compile basic blink I get error with spiffy
alonewolfx2
@alonewolfx2
Nov 25 2015 17:01
Try to build sming framework, and build spiffy in eclipse target
ystrem
@ystrem
Nov 25 2015 17:01
blob
Yeah it's ok now, at least on linux
Dmitry Kireev
@kireevco
Nov 25 2015 17:03

@alonewolfx2

not the same time. It's executing one by one

Where is async then?

alonewolfx2
@alonewolfx2
Nov 25 2015 17:03
It isn't async
Dmitry Kireev
@kireevco
Nov 25 2015 17:04
I always thought sming is non-blocking
that’s why you have to use callbacks… why callbacks then?:)
alonewolfx2
@alonewolfx2
Nov 25 2015 17:04
@ystrem it isn't compile log
ystrem
@ystrem
Nov 25 2015 17:05
w8
alonewolfx2
@alonewolfx2
Nov 25 2015 17:05
Just rtos sdk working async and we are based on nonos sdk :)
Dmitry Kireev
@kireevco
Nov 25 2015 17:05
oh, nonos=iot?
iot sdk
alonewolfx2
@alonewolfx2
Nov 25 2015 17:05
Yes
Dmitry Kireev
@kireevco
Nov 25 2015 17:05
is this a new name?
simply renamed iot->nonos?
espressif iot sdk
ystrem
@ystrem
Nov 25 2015 17:07
:D
Dmitry Kireev
@kireevco
Nov 25 2015 17:07
@alonewolfx2 anyway, I updated my esp-alt-sdk (Based on espressif iot sdk). wget should work on windows too.
alonewolfx2
@alonewolfx2
Nov 25 2015 17:08
Ok I will try again
I’m testing it now… I’ll ping you when I’m more sure about it
alonewolfx2
@alonewolfx2
Nov 25 2015 17:09
Ok if you make it work I can test it again
hreintke
@hreintke
Nov 25 2015 17:20
@alonewolfx2 :
If you are not sure whether headers work correctly please do a test and report back eventual issues.
Then you can also test whether the basic authorization works. There are lots of online tools to encode a username:password string to base64 encoded one.
Just hardcode in your application and you're done.
crosofg
@crosofg
Nov 25 2015 17:23

@alonewolfx2

@alonewolfx2 will

PWM.analogWrite(PIN1, high );
PWM.analogWrite(PIN2, med);
PWM.analogWrite(PIN3, low );

be executed at the same time?

is there any wa y
t oset the registers directly
in one instruction
hreintke
@hreintke
Nov 25 2015 17:34
@kireevco : Are you the licensing expert ?
What are options/problems when integrating GPLv2 license from gnu.org software ?
Dmitry Kireev
@kireevco
Nov 25 2015 18:07
@hreintke not an expert. just know you should not be changing the core software
you can use their tools, that’s fine.. just not adding anything to it.
if you cahnge, make sure to send them a patch
@hreintke what is your specific case?
ystrem
@ystrem
Nov 25 2015 18:24
Finally it's working compilation in geany :)
open-home-automation
@open-home-automation
Nov 25 2015 18:53
@hreintke I am looking for the other way, start a web server on the esp and force the client to log in using basic auth. Basically a way to protect the configuration webpages. Access point password could help too but then still when ESP is connected to the network all clients connected to the same network can access the configuration pages, which is not desired.
Dmitry Kireev
@kireevco
Nov 25 2015 19:15
@open-home-automation do you really need your web-config server on when ESP is already configured?
why can’t you enable web server only in the «config mode» ?
open-home-automation
@open-home-automation
Nov 25 2015 19:46
@kireevco True, but then I would need a button or something to enable the server
Dmitry Kireev
@kireevco
Nov 25 2015 19:46
as a customer I would be ok if I get such device with a button
and you can initiate factory reset from there too :)
Dmitry Kireev
@kireevco
Nov 25 2015 20:14
@alonewolfx2 ok, made bunch of changes to the esp-alt-sdk
ystrem
@ystrem
Nov 25 2015 20:38
I'm looking at the WS2812 example and we are not using the adafruit library, there is problem with it ?
alonewolfx2
@alonewolfx2
Nov 25 2015 20:51
@ystrem no. Ws2812 example is old we used that before adafruit port. and than I ported adafruit library and we we will clean old example. You can test new basic_neopixel example
Alexander V. Ribchansky
@avr39-ripe
Nov 25 2015 22:15
Hello! Today I find out that simple and small json from esp-12 loads about 1 second! :( several bytes and such a long time... json example {
"counter": 8491,
"mode_curr_temp": 0.00,
"date_time": "26.11.2015 01:08:53"
}
and such smal pice loads such long time.. no other heavy load on esp... whats wrong with speed?? How about you, gyus, what is yours downoad speed for json or pure html? recent sming + sdk 1.4
hreintke
@hreintke
Nov 25 2015 22:20
@open-home-automation :
Why don't you check for a/a number of parameters in the http-request within the server callback function.
When not present -> error page, when present -> allow
robotiko
@robotiko
Nov 25 2015 23:01
anyone managed to use gpio16 in nodemcu as output?