These are chat archives for esp8266/Arduino

20th
Apr 2016
Jeeth Suresh
@jeethsuresh
Apr 20 2016 02:41
hey guys! quick question - in the ESP8266WiFi class the object WiFi is defined externally
where is that defined?
Martin Ayotte
@martinayotte
Apr 20 2016 02:44
in 2.2.0/libraries/ESP8266WiFi/ ...
Jeeth Suresh
@jeethsuresh
Apr 20 2016 02:53
right, but if I wanted to dynamically assign channels to the SoftAP when I'm generating it for my mesh network, where would I go to change the code to let me do that? Or am I thinking of this wrong?
Markus
@Links2004
Apr 20 2016 09:52

there is a parameter for it.

bool softAP(const char* ssid, const char* passphrase = NULL, int channel = 1, int ssid_hidden = 0);

https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/ESP8266WiFiAP.h#L39
note: the Parameter may by overriden when you use the STA mode too the ESP can only work on one channel and STA mode has priority.

Lars Englund
@larsenglund
Apr 20 2016 11:24
@jeethsuresh is your mesh network code on github?
Does anyone else know of a mesh library for esp arduino?
Nagy Attila Gábor
@mrbig
Apr 20 2016 13:15
Hello all, I've been trying to make the EventManager (https://github.com/igormiktor/arduino-EventManager ) run on esp8266 arduino core. Since I have to #ifdef some parts of the code, I wonder if there is any predefined macro I could use to detect the presence of the arduino-core. Currently I'm using ESP_H, but that just doesn't seem to be right.
Me No Dev
@me-no-dev
Apr 20 2016 13:19

ifdef ESP8266

Nagy Attila Gábor
@mrbig
Apr 20 2016 13:36
I've possibly overlooked this. Thanks!
fabiangl
@fabiangl
Apr 20 2016 13:47
Take a look of this: https://github.com/Makuna/Task
Stavros Korokithakis
@skorokithakis
Apr 20 2016 15:21
does anyone know how i can connect this to my ESP? i'm a bit lost :/ http://www.ebay.com/itm/281776665478?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
Me No Dev
@me-no-dev
Apr 20 2016 15:32
you use the serial port to connect to it
Stavros Korokithakis
@skorokithakis
Apr 20 2016 15:33
just tx/rx?
Me No Dev
@me-no-dev
Apr 20 2016 15:33
and GND yes
might need the reset to make sure the module is init at sketch boot
Stavros Korokithakis
@skorokithakis
Apr 20 2016 15:34
hmm, the reset is solder-on, there's no pin
i might just solder one there
there's 5VT/5VR/3VT/3VR/VCC/GND and then something that says DB9-2/DB9-3/GND
the DB-stuff seems to be serial
but the 3VT/3VR also seems to be serial
so confusing
Me No Dev
@me-no-dev
Apr 20 2016 15:39
the chip by spec does not tollerate 3.3V logic
though I have found it working fine
Stavros Korokithakis
@skorokithakis
Apr 20 2016 15:39
this shield claims to have a 3V logic level pin
Me No Dev
@me-no-dev
Apr 20 2016 15:39
so they have a convertor there to be able to work on 5V
Stavros Korokithakis
@skorokithakis
Apr 20 2016 15:39
so that should work, at least
right
looks like an FTDI cable will work as well
Michael Miller
@Makuna
Apr 20 2016 16:04
@mrbig @me-no-dev The official one I thought should be ARDUINO_ARCH_ESP8266 and not ESP8266.
Stavros Korokithakis
@skorokithakis
Apr 20 2016 16:05
does anyone know of anything like a microusb to power cable?
tzapu
@tzapu
Apr 20 2016 16:19
or a tiny usb power source? similar to the apple watch one for instance? :P just tagging along your question @skorokithakis
Stavros Korokithakis
@skorokithakis
Apr 20 2016 16:20
@tzapu what does that one look like?
but EU i d preffer :P
$1? i'm sure these will just catch fire while sitting on a desk
tzapu
@tzapu
Apr 20 2016 16:22
yeah, seen most of thise
those*, but wondered if anyone used any
so i know they don t catch fire :P
Stavros Korokithakis
@skorokithakis
Apr 20 2016 16:23
i just bought five
so if i don't show up again, you'll know :smile:
tzapu
@tzapu
Apr 20 2016 16:23
of the 1$ ones?
:)))
Stavros Korokithakis
@skorokithakis
Apr 20 2016 16:23
yeah
tzapu
@tzapu
Apr 20 2016 16:23
ok, i ll look for you in 1 month or so
Stavros Korokithakis
@skorokithakis
Apr 20 2016 16:23
haha yep
tzapu
@tzapu
Apr 20 2016 16:23
apprently the quality of the stabilisation on those cheap ones leaves a lot to be desired, etc
john lee from expressif told us once that they have an idea and will come up with some sort of mains power solution
but haven t seen anything yet
Martin Ayotte
@martinayotte
Apr 20 2016 16:27
But that is true for almost any thing from China : a year ago, I've received Wall-PSUs with barrel, one of them had a solder blob inside touching the AC, when I've plug it, 120VAC across OlimexBoard and USB hub, both gave smoke. Fortunately, my PC itself been undamaged, protected by this USB Hub.
tzapu
@tzapu
Apr 20 2016 16:29
ffs
glad your pc is ok
that was the mention
Martin Ayotte
@martinayotte
Apr 20 2016 16:30
Yes ! now, I'm testing any unit that is connected to AC to make sure there is no AC on the DC side.
Stavros Korokithakis
@skorokithakis
Apr 20 2016 16:32
i should start doing that too, good call
no idea if they are half decent...