These are chat archives for esp8266/Arduino

13th
Jul 2016
andig
@andig
Jul 13 2016 05:15
@sticilface noticed same on Mac regarding MDNS name resolution. Its even slower on mine. I noticed lwip2 has ip6. Not sure what espressif's plans are for sdk2 and ip6- that might be a qay out?
andig
@andig
Jul 13 2016 07:33
Can I create anonymous interrupt handlers on the fly, potentially even binding variables? That would be helpful as my "real" handler would be a class method. Any samples available?
Me No Dev
@me-no-dev
Jul 13 2016 08:05
using bind?
I'm not sure I understand what you want to do exactly
andig
@andig
Jul 13 2016 08:15
Need to have class::handker(pin) and attach this to various gpios basically. Hoe could I do that in a flexible way? Its beyond my C :worried:
Bind is js terminology
Clemens Kirchgatterer
@everslick
Jul 13 2016 08:49
bind was added for C++0x to finally do away with the 'function pointer to methods' problem.
name mangling and the implizit this pointer made those a little bit 'tricky'. ;-)
Me No Dev
@me-no-dev
Jul 13 2016 09:13
@andig I don;t think this can be done with the current pin interrupt inplementation, but can be done with custom one ;)
it's not a big deal to write an InterruptListener class with the functionality you want.
take a look at the AsyncTCP class for example and how it attaches to C events
andig
@andig
Jul 13 2016 09:15
Will do, thanks!
Me No Dev
@me-no-dev
Jul 13 2016 09:17
you can the same way have an obejct that is always referenced in the callback and that object to be the pointer to your static class::_isr(var arg, int pin) that can then call class::handler(pin)
Holger Lembke
@holgerlembke
Jul 13 2016 10:27
any1 with an overview about nbns state of esp8266? I found a thread that expressif did something, but I didnt find any implementation....
Me No Dev
@me-no-dev
Jul 13 2016 10:46
"WINS primarily supports clients that run older versions of Windows and applications that use NetBIOS."
Why do you need nbns?
Holger Lembke
@holgerlembke
Jul 13 2016 10:48
i thought about seeing my esp in the Network neigborhood....
Me No Dev
@me-no-dev
Jul 13 2016 10:48
and what will you do with it from there?
SSDP will show it in your devices
Holger Lembke
@holgerlembke
Jul 13 2016 10:50
do some ping to it.
Me No Dev
@me-no-dev
Jul 13 2016 10:51
also NetBIOS seem to require 2 UDP and 1 TCP ports which is a bit of overkill for that, don't you think?
Holger Lembke
@holgerlembke
Jul 13 2016 10:51
I dont think.
Me No Dev
@me-no-dev
Jul 13 2016 10:51
do some ping? you can ping now :)
ping esp-hostname.local
Holger Lembke
@holgerlembke
Jul 13 2016 10:52
where to get/set esp-hostname?
Me No Dev
@me-no-dev
Jul 13 2016 10:53
else MDNS.begin("blah")
if using ArduinoOTA -> ArduinoOTA.setHostname("blah")
then ping blah.local
Holger Lembke
@holgerlembke
Jul 13 2016 10:54
ok, mdns is running, ping does not work. not having bonjour might be the reason?
Me No Dev
@me-no-dev
Jul 13 2016 10:55
maybe a Windows user can shed some light on that
but it could be the case
Holger Lembke
@holgerlembke
Jul 13 2016 10:55
it is the case... :-)
so the trade is: some udp (is enough for nbns) against installing Software on a machine...
Me No Dev
@me-no-dev
Jul 13 2016 10:56
feel free to go ahead and write an implementation
Holger Lembke
@holgerlembke
Jul 13 2016 10:56
this http://www.xpablo.cz/?p=751#more-751 seems to work very fine
Me No Dev
@me-no-dev
Jul 13 2016 10:57
don't think that it will work on linux and mac though
Holger Lembke
@holgerlembke
Jul 13 2016 10:57
mdns works on Linux/mac?
Me No Dev
@me-no-dev
Jul 13 2016 10:57
yes and in Arduino IDE
on all platforms
I'll give that lib a go ;) maybe make it async like MDNS and see if anything shows up on my mac
Holger Lembke
@holgerlembke
Jul 13 2016 11:03
my idea is to have an esp with something on it and plug it into any net. And have ordinary members of the public access it without the need to install something.
Me No Dev
@me-no-dev
Jul 13 2016 11:04
access what?
web server?
Holger Lembke
@holgerlembke
Jul 13 2016 11:04
might be.
Me No Dev
@me-no-dev
Jul 13 2016 11:05
MDNS with added http service + SSDP will do the job for you
on windows without bonjour you will see the dvice in your devices window and can access the page from there
add netbios instead ssdp if you want
Holger Lembke
@holgerlembke
Jul 13 2016 11:10
as far as I see, expressif implemeted a "espconn_nbns_init"
Me No Dev
@me-no-dev
Jul 13 2016 11:12
where?
not in our lwip source
Holger Lembke
@holgerlembke
Jul 13 2016 11:13
and postman just delivered a Printer... i'm distracted now
Me No Dev
@me-no-dev
Jul 13 2016 13:13
@holgerlembke esp8266/Arduino#2275
Holger Lembke
@holgerlembke
Jul 13 2016 15:11
@me-no-dev nice! and this expressif-stuff?
Me No Dev
@me-no-dev
Jul 13 2016 15:33
I have no knowledge of such method in the SDK
Pablo2048
@Pablo2048
Jul 13 2016 17:50
this http://www.xpablo.cz/?p=751#more-751 seems to work very fine Thank you... Yes it works :-)
Holger Lembke
@holgerlembke
Jul 13 2016 17:54
nice work, @Pablo2048
Pablo2048
@Pablo2048
Jul 13 2016 17:56
@holgerlembke Thanks again...
Holger Lembke
@holgerlembke
Jul 13 2016 19:46
@me-no-dev Looks like they made a Version with nbns in it and then removed it again... why? what are they doing? (rethorically asking)
Me No Dev
@me-no-dev
Jul 13 2016 19:47
no clue :) have not noticed and have not asked
but nbns is in PR ;) you'll have it soon enough.
runs async so all you need to do is call NBNS.begin("hostname");
Holger Lembke
@holgerlembke
Jul 13 2016 19:52
its not that i don't have it now... I can install libs... :-)
Me No Dev
@me-no-dev
Jul 13 2016 19:53
the code in the lib can be easily made into plain C if you want to go that way
espressif also have some sort of mdns in the sdk that I have not looked at either
Holger Lembke
@holgerlembke
Jul 13 2016 19:53
i noticed that, too.
Me No Dev
@me-no-dev
Jul 13 2016 19:53
api made no sense and ours have more features
Holger Lembke
@holgerlembke
Jul 13 2016 19:54
currently I just want to "finish" my framework for esp8266 programs.
and than there is the printer i got today....
holgerlembke @holgerlembke need some hot chocolate.
Me No Dev
@me-no-dev
Jul 13 2016 19:57
is it 3D or ?
Holger Lembke
@holgerlembke
Jul 13 2016 20:00
prusa i3
Me No Dev
@me-no-dev
Jul 13 2016 20:00
your first 3D?
Mario Mikočević
@mozgy
Jul 13 2016 20:00
@holgerlembke nice
where from ?
Holger Lembke
@holgerlembke
Jul 13 2016 20:03
physically yes. I paid for a makibox, it might still be somewhere in hong kong.
@mozgy eBay. geeeeeeetech.
Me No Dev
@me-no-dev
Jul 13 2016 20:14
welcome to the wonderful world of 3D printing problems :D
Holger Lembke
@holgerlembke
Jul 13 2016 20:16
it will be a time waster, I feel it. somewhere i have access to this laser-metal-sinter-million-dollars-thingy and it is addictiv. and a lot of paperwork to fill out for every job...
i hate it.
Mario Mikočević
@mozgy
Jul 13 2016 21:22
@me-no-dev problems ?
I have Fabrikator Mini and not a single problem so far <knock knock>
Me No Dev
@me-no-dev
Jul 13 2016 21:26
different materials, different temps, different base to print on, cooling too fast, not cooling fast enough...
Mario Mikočević
@mozgy
Jul 13 2016 21:26
those are not problems :D
Me No Dev
@me-no-dev
Jul 13 2016 21:27
they are when you need to halt and reprint
Mario Mikočević
@mozgy
Jul 13 2016 21:30
so far I've used 2 kilos of 1.75 and every fail was my mistake
and 2kg on a Mini (80x80x80) is a LOT
tried octoprint with esp, wifi wasn't stable so ditched it for eth cable
Me No Dev
@me-no-dev
Jul 13 2016 21:49
I've gone over 5KG PLA and ABS so far and still get "surprised" from time to time