Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:21
    stef-ladefense edited #6901
  • 11:18
    stef-ladefense opened #6901
  • 07:48
    altelch synchronize #6865
  • 03:15
    earlephilhower milestoned #6299
  • 02:01
    earlephilhower synchronize #6294
  • 01:40
    devyte labeled #6900
  • 01:40
    devyte labeled #6900
  • 01:40
    devyte edited #6900
  • 01:39
    devyte milestoned #6900
  • 01:39
    devyte opened #6900
  • 01:20
    devyte closed #6885
  • 00:02
  • Dec 11 23:18
  • Dec 11 23:18
    earlephilhower synchronize #6294
  • Dec 11 23:15
    earlephilhower synchronize #6294
  • Dec 11 23:12
    earlephilhower synchronize #6294
  • Dec 11 23:03
    earlephilhower synchronize #6294
  • Dec 11 22:55

    earlephilhower on master

    POST http client example (#2704… (compare)

  • Dec 11 22:55
    earlephilhower closed #2704
Me No Dev
@me-no-dev
if(!MDNS.begin()) ?
sam-fori-yana
@khaaali
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
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
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
@igrr no probs, thanks for the kind words, hopefully some good can come from these unfortunate situations other projects are going through.
seclorum
@seclorum
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
there where a rebuild of the git
seclorum
@seclorum
a rebuild of the git?
Markus
@Links2004
esp8266/Arduino#904
we removed all the code from the Arduino IDE itself
seclorum
@seclorum
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
yes https://github.com/esp8266/Arduino#using-git-version- thanks to the changes its really easy now
seclorum
@seclorum
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
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
great thanks .. trying it now
Jeff Eberl
@jeffeb3
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
ermm, this is still downloading bins to me .. not building the toolchain from scratch, right?
Ivan Grokhotkov
@igrr
@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
@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
Oh wait, the client is the arduino IDE for ota updates? Neat.
Markus
@Links2004
yes
or you can use a web server, take a look here:
https://github.com/esp8266/Arduino/issues/268#issuecomment-154190046
Jeff Eberl
@jeffeb3
Hah, that's cool too.
I am constantly surprised how much is changing with this ESP chip.
Jeff Eberl
@jeffeb3
The web server example doesn't explain the client. Looks like someone could use that for making a web based IDE/updater.
Markus
@Links2004
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
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
yes, this one of the reasons why i wrote the http updater ;)
Jeff Eberl
@jeffeb3
Well thank you. And get it documented! The people must know!