These are chat archives for esp8266/Arduino

5th
Nov 2015
kathir1951
@kathir1951
Nov 05 2015 01:02
@igrr Oh just trying I have to modify platform text line78 acordingly
@igrr Thanks I spilitted as you suggested compilied successfully
@igrr I choosen 0x0000 and 0x10000 how to calulate length when i change location of rom data in the id file
Harrison Mclean
@h4rm0n1c
Nov 05 2015 02:03

Hello people. I'd like to highlight a small concern. My concern is that a random nutcase will descend onto this project, and make furious demands for things like a "Code of Conduct", a "safe space", banning "microaggressions" and other extremist nonsense that has nothing to do with the project itself.

I wouldn't have a problem with this if such codes didn't imply things along the lines of "power + prejudice = racism therefore, it's impossible to be racist to white people"

And yes, certain people use this to give themselves free license to treat people like garbage just because they're either white or male.

No, I'm not kidding, these things exist and they're ridiculous, but the threat of being attacked in our own jobs, being fired, etc is very real, look at what happened to the biologist Tim Hunt or the Philae Lander Guy a.k.a Shirtstorm (god that was stupid... all that outrage over a shirt)

I was wondering if it might be a good idea, as unlikely as it might be to happen (it seems to be happening at random), to pre-empt any kind of politicking or rubbish like that with a "code of merit" instead?

This one was written as an alternative to codes of conduct: https://github.com/rosarior/Code-of-Merit

I just really like this project, I don't want to see it destroyed by ideologues, sorry if my concern is misplaced or unwanted.

Harrison Mclean
@h4rm0n1c
Nov 05 2015 02:20
I didn't want to bring it up, because it's bringing external real-world BS in here, but I had to say something, I thought I might end up regretting it if I didn't.
sam-fori-yana
@khaaali
Nov 05 2015 12:50
im getting this error in serial terminal when i flash the code into ESP "Error setting up MDNS responder!"
Me No Dev
@me-no-dev
Nov 05 2015 12:54
you are probably using old code
MDNS is global now
sam-fori-yana
@khaaali
Nov 05 2015 13:04
i updated the arduino a week back from that time im facing this error
Me No Dev
@me-no-dev
Nov 05 2015 13:04
your sketch needs to be updated as well
sam-fori-yana
@khaaali
Nov 05 2015 13:04
yes its declared as global
Me No Dev
@me-no-dev
Nov 05 2015 13:05
what do you do to get this error?
if(!MDNS.begin()) ?
sam-fori-yana
@khaaali
Nov 05 2015 13:06
int mdns1(int webtype)
{
// Check for any mDNS queries and send responses
mdns.update();
// Check if a client has connected
WiFiClient client = server.available();
if (!client) {
   return(20);
}
Serial.println("");
Serial.println("New client");

 // Wait for data from client to become available
while(client.connected() && !client.available()){
delay(1);
}
Me No Dev
@me-no-dev
Nov 05 2015 13:09
none of that triggers your error
thecode that you should paste is in your setup()
there are 4 possible reasons that will lead to the service not starting
  1. the IP of the ESP could not be read (no wifi)
  1. the name that you chose is longer than 255 chars
damn gitter rewriting the numbers...
the next reason would be that you can not join the igmp group (doubt it)
and the last is that the server could not be started (havng started other servers before MDNS?)
Ivan Grokhotkov
@igrr
Nov 05 2015 13:21
mdns.update();
This isn't necessary any more

Also if you have

MDNSResponder mdns;

This needs to be removed.

@h4rm0n1c I love the language of this Code of Merit. I was planning to add CONTRIBUTING.md, this will definitely be a good addition.
Harrison Mclean
@h4rm0n1c
Nov 05 2015 14:49
@igrr no probs, thanks for the kind words, hopefully some good can come from these unfortunate situations other projects are going through.
seclorum
@seclorum
Nov 05 2015 21:39
hey guys .. what happened to the esp8266 branch that was usable to build the Arduino ESP8266 tools from sources?
branch: esp8266
but it seems its not available at origin any more .. ?
Markus
@Links2004
Nov 05 2015 21:40
there where a rebuild of the git
seclorum
@seclorum
Nov 05 2015 21:41
a rebuild of the git?
Markus
@Links2004
Nov 05 2015 21:41
esp8266/Arduino#904
we removed all the code from the Arduino IDE itself
seclorum
@seclorum
Nov 05 2015 21:41
so i want to just build the toolchain as i don't use the IDE - thus i don't use the boards manager
is there still a way to do that?
Markus
@Links2004
Nov 05 2015 21:42
yes https://github.com/esp8266/Arduino#using-git-version- thanks to the changes its really easy now
seclorum
@seclorum
Nov 05 2015 21:42
i don't want to use the arduino IDE at all .. do i still need it for the git version?
i.e. don't want to install a binary of the ide
Markus
@Links2004
Nov 05 2015 21:44
die IDE is not needed you can use your one build scripts

the steps are the same

git clone https://github.com/esp8266/Arduino.git esp8266
cd esp8266/tools
python get.py

then you have all you need to build a binary for the ESP

seclorum
@seclorum
Nov 05 2015 21:46
great thanks .. trying it now
Jeff Eberl
@jeffeb3
Nov 05 2015 21:55
I have this stuff installed via the boards manager in the arduino IDE. I'm guessing the reason the ArduinoOTA.h isn't found is because that's an older version of the tools, right? I see you just explained how to install it from git (which would be the latest version). Is there a guide somewhere for how to do the OTA stuff (including the client side)?
seclorum
@seclorum
Nov 05 2015 21:55
ermm, this is still downloading bins to me .. not building the toolchain from scratch, right?
Ivan Grokhotkov
@igrr
Nov 05 2015 21:56
@seclorum you're right, it doesn't build toolchain "from scratch"
which OS are you using?
linux and OS X toolchains are build using crosstool-ng
windows toolchain is built using this script and MinGW
Markus
@Links2004
Nov 05 2015 22:01
@jeffeb3 the example is here: https://github.com/esp8266/Arduino/blob/master/libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino
the upload process the same the allways you only need the select the right OTA target by the Ports menu
Jeff Eberl
@jeffeb3
Nov 05 2015 22:02
Oh wait, the client is the arduino IDE for ota updates? Neat.
Markus
@Links2004
Nov 05 2015 22:02
yes
or you can use a web server, take a look here:
https://github.com/esp8266/Arduino/issues/268#issuecomment-154190046
Jeff Eberl
@jeffeb3
Nov 05 2015 22:05
Hah, that's cool too.
I am constantly surprised how much is changing with this ESP chip.
Jeff Eberl
@jeffeb3
Nov 05 2015 22:12
The web server example doesn't explain the client. Looks like someone could use that for making a web based IDE/updater.
Markus
@Links2004
Nov 05 2015 22:16
yes, possible, the "client" (http Server) only needs to send a bin file or http header 304 (no update).
in the simples case there is no logic or script on there server running.
but the server can send for example different files based on the MAC address.
I currently running a simple php script thats delivers based on a json file the bins based on the MAC (including a version check).
Jeff Eberl
@jeffeb3
Nov 05 2015 22:18
If there was money in it, someone could make a web based IDE (similar to the particle IDE) and automatically fill in the web updater stuff, and then point each one to a separate webpage. I guess you'd be dealing with a lot of devices checking in all the time for updates.
Anyway, it's very cool.
Yeah, I think I'm going to figure this all out. I would like to stop having to climb on a ladder to change the firmware on my garage door detector. Seems easy enough.
Thanks.
Markus
@Links2004
Nov 05 2015 22:22
yes, this one of the reasons why i wrote the http updater ;)
Jeff Eberl
@jeffeb3
Nov 05 2015 22:23
Well thank you. And get it documented! The people must know!
seclorum
@seclorum
Nov 05 2015 22:24
@igrr thanks, is the config for crostool-ng available somewhere in the repo, i may have overlooked it .. for compliance/testing reasons, where possible I prefer to build toolchains from source...