These are chat archives for esp8266/Arduino

21st
Dec 2015
beikeland
@beikeland
Dec 21 2015 04:11
is there an esp equivalent for #ifdef __AVR__ ; or where should I look for one?
beikeland
@beikeland
Dec 21 2015 06:08
#ifdef __XTENSA__ works to create conditonal code for the esp?
Endre Karlson
@ekarlso
Dec 21 2015 06:53
@ivankravets is that just a plaintext pw ?
Endre Karlson
@ekarlso
Dec 21 2015 07:17

:wr

:sent 77

:ww

mac 663

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

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld

anyone know what this is related to ?

Endre Karlson
@ekarlso
Dec 21 2015 08:03
Any example sketch of OTA updates ?
Kiril Zyapkov
@kzyapkov
Dec 21 2015 09:40
I wonder, should one always re-init services when WiFi reconnects? Like, does the http server need server.begin(), or will it just work with a single begin() invocation from setup() ?
The question is also valid for mDNS, dns server, ssdp responder, etc ...
Helio Machado
@0x2b3bfa0
Dec 21 2015 09:58

@kzyapkov: You seemed to try to put a big :smile_cat: with # :smile_cat:. The only existent (or I believe so) workaround for this is:

![:smile_cat:](https://cdn03.gitter.im/_s/75cadb0/images/emoji/smile_cat.png)

:smile_cat:

Me No Dev
@me-no-dev
Dec 21 2015 10:37
@kzyapkov mDNS and all UDP based services do not need to be restarted on WiFi loss
TCP servers can usually stay running but all clients will be lost
and those at least need to be cleaned
Markus
@Links2004
Dec 21 2015 10:41
@beikeland #ifdef ESP8266
Chris Elsworth
@celsworth
Dec 21 2015 10:42
wahey, esp32 is here
holy crap thats small pin pitch.
Mario Mikočević
@mozgy
Dec 21 2015 10:45
I hate you now :)
Chris Elsworth
@celsworth
Dec 21 2015 11:20
@igrr is there an early arduino core to test on this thing? :)
Sven Eliasson
@comino
Dec 21 2015 11:27
How do you guys debug? I do everyhting via manual serial outut -is there a library with a more fancy debug interface?
Chris Elsworth
@celsworth
Dec 21 2015 11:27
there's a gdb stub
https://github.com/espressif/esp-gdbstub and if I remember rightly there's been some commits into git head about this recently
yep esp8266/Arduino@8f2ce1e
not looked into it though, not tried to use it yet
Chris Elsworth
@celsworth
Dec 21 2015 11:34
sweet, ipv6 stuff is turned on in the esp32 liblwip.a :D
IoT so badly needs ipv6
brutzler
@brutzler
Dec 21 2015 11:48
Hi guys,
has anybody seen a ESP8266 with LAN-Interface?
Helio Machado
@0x2b3bfa0
Dec 21 2015 11:48
@brutzler: Hi!
Chris Elsworth
@celsworth
Dec 21 2015 11:48
only if you hook it up via spi or i2c, there isn't one onboard
esp32 has an ethernet mac though, so this may change :)
brutzler
@brutzler
Dec 21 2015 11:50
have an arduino with ethernet-shield on a WLAN free-zone. would like to change it to an ESP8266, because of the better power/ram/....
Chris Elsworth
@celsworth
Dec 21 2015 11:50
well the arduino ethernet is only spi so it wouldn't be any worse :)
there are libraries to use the W5100 (the arduino ethernet chip) on the 8266, so it can be done
you just have to hook it up, won't be as pretty as plugging a shield in on top obviously ;)
in fact its even in the arduino core, the Ethernet library uses the w5100 stuff
anyway, to answer your original question, I've never seen one sold with an ethernet port as standard, I think its something you'd have to knock together yourself, but it will work
brutzler
@brutzler
Dec 21 2015 11:54
ok, thx, will look for the libs and give it a try. some calm days are waiting
are there libs for the ENC28J60 too?
Chris Elsworth
@celsworth
Dec 21 2015 11:56
doesn't look like anyone has ported it to 8266
is that one better than w5100?
brutzler
@brutzler
Dec 21 2015 11:59
no more worse because of missing tcp-stack (imho). but there is one in my box ;-)
beikeland
@beikeland
Dec 21 2015 13:03

with

#ifndef ESP8266
  #include <VirtualWire.h>
#endif

i still get Arduino\libraries\VirtualWire\VirtualWire.cpp:16:26: fatal error: util/crc16.h: No such file or directory #include <util/crc16.h>

Helio Machado
@0x2b3bfa0
Dec 21 2015 13:25
@beikeland: This header seems to come from AVR libc.
onkelfunny
@onkelfunny
Dec 21 2015 13:42
Hello.
I pulled the current git version. now i receive this error:
/Arduino/hardware/esp8266com/esp8266/tools/sdk/lib/libcrypto.a(aes-internal-dec.o): In function `aes_decrypt_init':
(.irom0.text+0x134): undefined reference to `Td4s'
collect2: error: ld returned 1 exit status
make: *** [Projekt.elf] Error 1
Ivan Kravets
@ivankravets
Dec 21 2015 15:55
@crushedice2000 I've just released new PlatformIO 2.6.2. SCons was removed from requirements list. Now users will not have any problems to install PlatformIO. But... Sometimes will have this
@celsworth @mozgy @comino why you don't use latest PlatformIO? Which problems do you have with 2.6.1? Please report us https://github.com/platformio/platformio/issues
Chris Elsworth
@celsworth
Dec 21 2015 15:57
I'll test and report an issue if I can make a reproduceable bug
Ivan Kravets
@ivankravets
Dec 21 2015 15:59
Which version do you use now?
Chris Elsworth
@celsworth
Dec 21 2015 16:00
ok, gone to 2.6.2 and reproduced my error
I'll open a ticket
crosofg
@crosofg
Dec 21 2015 16:18
Hi all, is there SSL imlementaion available in arduino nased development env?
Markus
@Links2004
Dec 21 2015 17:00
yes
as WiFiClientSecure, and fully integrated in httpClient for example
Helio Machado
@0x2b3bfa0
Dec 21 2015 17:22
@ivankravets: Thanks!
Ivan Kravets
@ivankravets
Dec 21 2015 19:14

PlatformIO users please upgrade to the latest 2.6.3 hotfix release for Espressif platform! https://github.com/platformio/platformio/releases/tag/v2.6.3

@celsworth wait for your feedback as for 2.6.3. Thanks.

beikeland
@beikeland
Dec 21 2015 19:30
@crushedice2000 but if compiling for the ESP8266 it should skip the VirtualWire include and compile? If I comment out the VitrtualWire include (inside the conditional statement) it compiles fine. So, yeah, I guess VirtualWire pulls in the util/crc16.h header. But shouldn't the preprocessor skip VirtualWire all together?
beikeland
@beikeland
Dec 21 2015 20:43
I found this ssd1306 library for oled, supports graphics, variable font sizes, and even has an online tool to create new font sizes on the fly https://github.com/squix78/esp8266-oled-ssd1306
Mario Mikočević
@mozgy
Dec 21 2015 20:43
yep, thats good one
Helio Machado
@0x2b3bfa0
Dec 21 2015 21:43
@beikeland: Sorry, I'm not an expert (nor even a middle-level C/++ programmer), however I think it may be a preprocessor bug.