These are chat archives for esp8266/Arduino

30th
Nov 2015
Stavros Korokithakis
@skorokithakis
Nov 30 2015 00:06
how long does an interrupt usually take? i'm working with some time-sensitive code
Me No Dev
@me-no-dev
Nov 30 2015 01:17
if you really want time sensitive, the ESP is not for the task
hook up an AVR to it and do that there
@jdcalus what is the serial converter tha you use?
you probably need new drivers
and you should use a hub between your mac and serial
Sven Eliasson
@comino
Nov 30 2015 01:42
How can I get a function pointer to a class member function for webserver?
This message was deleted
class myClass{
    public:
        test();
        void handleGetData(void);
}

void myClass::test(){
    _webserver.on("/data", HTTP_GET, this->handleGetData );
    _webserver.begin();
}

void myClass::handleGetData(){
    //stuff
    _webserver.send(200, "text/plain", payload);
}
Im not professional C++ and this is stuff which is killing my day :D
Me No Dev
@me-no-dev
Nov 30 2015 01:47
class myClass{
     private:
         ESP8266WebServer& _webserver;
    public:
         myClass(ESP8266WebServer& server){ _webserver = server; }
        test();
        void handleGetData(void);
}

void myClass::test(){
    _webserver.on("/data", HTTP_GET, this->handleGetData );
    _webserver.begin();
}

void myClass::handleGetData(){
    //stuff
    _webserver.send(200, "text/plain", payload);
}
Sven Eliasson
@comino
Nov 30 2015 01:50
oh I removed some other stuff ^^ actually "this->handleGetData" this is what throws the error
Me No Dev
@me-no-dev
Nov 30 2015 01:50
you might not want to call _webserver.begin(); if you are referencing the server
and there are better ways to implement you server class if that is what this will be
_webserver.on for example creates a FunctionRequestHandler
Sven Eliasson
@comino
Nov 30 2015 02:11
still processing Ok I guess I need to take the time to understand the underlying structure. ;) The WebServerClass was working fine, so I never took the time. Thanks so far.
Nevertheless - my problem here is another more general one. How can I parse a class member function pointer to the webserver like in the FSBrowser example. Here the ("this->handleGetData") is not compiling.
I assume this->func is not a valid function pointer?
Sven Eliasson
@comino
Nov 30 2015 02:18
(tried stuff like &myclass::func and more.. Im realy lost here :/ )
Me No Dev
@me-no-dev
Nov 30 2015 02:23

class myClass{
  private:
     static ESP8266WebServer& _webserver;
  public:
     void begin(ESP8266WebServer& server){ _webserver = server; }
     void test();
     void handleGetData(void);
};

void myClass::test(){
  _webserver.on("/data", HTTP_GET, std::bind(&myClass::handleGetData, this));
  _webserver.begin();
}

void myClass::handleGetData(){
  //stuff
  _webserver.send(200, "text/plain", "");
}
Sven Eliasson
@comino
Nov 30 2015 02:26
<3 thanks!
that took me 1 1/2 hours :D
Me No Dev
@me-no-dev
Nov 30 2015 02:26
the core and libraries are a good source for examples
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 10:16
is someone here?
Me No Dev
@me-no-dev
Nov 30 2015 10:25
almost
Mario Mikočević
@mozgy
Nov 30 2015 10:38
what @me-no-dev wrote ..
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 11:35
guys i think you all know about the rfid reader and the esp8266 so basically what i want to do is hookup mu arduino uno to the rfid reader and the esp8266 to the arduino and create a server-client programme so when some one touches my rfid reader with a rfid card it would be shown on the server
Stavros Korokithakis
@skorokithakis
Nov 30 2015 11:40
@Hassanbenlebsir why are you using the arduino at all? why not just use the esp?
does anyone know how i can sprintf() to a String?
Me No Dev
@me-no-dev
Nov 30 2015 11:52
char *forString = new char[64];
if(forString != NULL){
  sprintf(forString, "Some sprintf with var %u", var);
  String result = String(forString);
}
@Hassanbenlebsir we discuss using the ESP instead of AVR Arduino
Stavros Korokithakis
@skorokithakis
Nov 30 2015 11:53
@me-no-dev thanks
Me No Dev
@me-no-dev
Nov 30 2015 11:53
this framework gives you that, so no need to use Uno to read the RFID
make sure you free(forString) once you are done with it
Stavros Korokithakis
@skorokithakis
Nov 30 2015 12:05
oh, oops, i forget to free things
damnit, now i'm wondering what else i forgot to free
i'm not doing any explicit mallocs
Me No Dev
@me-no-dev
Nov 30 2015 12:07
it depends how you define your arrays
Stavros Korokithakis
@skorokithakis
Nov 30 2015 12:07
just char myarray[150]
Me No Dev
@me-no-dev
Nov 30 2015 12:08
that should be freed once you are done with it as far as I know but it does not guarantee that you will have that memory availabe
Ivan Grokhotkov
@igrr
Nov 30 2015 12:11
neither does new char[150], by the way
Me No Dev
@me-no-dev
Nov 30 2015 12:12
so malloc only?
Ivan Grokhotkov
@igrr
Nov 30 2015 12:12
malloc and new are basically the same
new calls malloc :)
onkelfunny
@onkelfunny
Nov 30 2015 12:13
@igrr is it possible to create one file with firmware and spiffs and upload the file over the web?
Me No Dev
@me-no-dev
Nov 30 2015 12:14
in one go?
onkelfunny
@onkelfunny
Nov 30 2015 12:14
yes
Ivan Grokhotkov
@igrr
Nov 30 2015 12:14
@onkelfunny i don't think this is supported in ArduinoOTA, but it's not impossible.
Me No Dev
@me-no-dev
Nov 30 2015 12:15
it's possible to create two files and you write code using Updater to write them both and restart only after the second one
currenty it will reboot after the first image
ArduinoOTA support fashing both but one at a time
onkelfunny
@onkelfunny
Nov 30 2015 12:16
only spiffs upload over web is possible? Is the address information in the spiffs image?
Me No Dev
@me-no-dev
Nov 30 2015 12:16
?
did not understand the question
both can be flashed using all tools
esptool supports it, espota supports it
onkelfunny
@onkelfunny
Nov 30 2015 12:18
with the web update example i can upload the firmware. is it possible to upload with the example the spiffs?
Me No Dev
@me-no-dev
Nov 30 2015 12:18
and you can write a simple mix of the web update example to upload both images and do that way as well
with some change, yes
they all use the Updater class
onkelfunny
@onkelfunny
Nov 30 2015 12:19
there is a way to identify the image?
i mean the type (firmware or spiffs)
Me No Dev
@me-no-dev
Nov 30 2015 12:21
yes, see the firmware image structure (it's header) to see how to distinguish
the docs have some info
onkelfunny
@onkelfunny
Nov 30 2015 12:22
ok, thx
Stavros Korokithakis
@skorokithakis
Nov 30 2015 12:26
hmm, i'm constructing a string like so: client.publish("topic", String("something"))
is that leaking memory?
Ivan Grokhotkov
@igrr
Nov 30 2015 12:26
no, this isn't leaking memory
Stavros Korokithakis
@skorokithakis
Nov 30 2015 12:27
when is that getting freed?
Ivan Grokhotkov
@igrr
Nov 30 2015 12:27
Right after client.publish returns
Stavros Korokithakis
@skorokithakis
Nov 30 2015 12:27
oh, thanks
I have:
    unsigned char cPayload[MAX_MESSAGE_LENGTH];
    String payload = pub.payload_string();

    payload.toCharArray((char *)cPayload, MAX_MESSAGE_LENGTH);
do i need to free cPayload or payload afterwards?
damn, i need to learn where the implicit mallocs are so i can free things
Ivan Grokhotkov
@igrr
Nov 30 2015 12:29
You don't need to free those
Stavros Korokithakis
@skorokithakis
Nov 30 2015 12:29
ah, great, thanks
oh, i just noticed that the example above was calling new to a pointer
right, that makes sense that it'll have to be freed
Ivan Grokhotkov
@igrr
Nov 30 2015 12:30
cPayload is a variable with automatic lifetime, which is allocated on the stack. it will be release by the compiler when it goes out of scope
Stavros Korokithakis
@skorokithakis
Nov 30 2015 12:31
that figures, thanks. i was confused because I thought forString was above was defined as char forString[64], i missed the new
Ivan Grokhotkov
@igrr
Nov 30 2015 12:31
yes, if you do a new, then you need to do delete
(or new[] and delete[])
if you malloc then you need to free
Stavros Korokithakis
@skorokithakis
Nov 30 2015 12:32
i see, thank you
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 13:39
@skorokithakis do you have an email adresse i can contact you on please i have question
Stavros Korokithakis
@skorokithakis
Nov 30 2015 13:47
@Hassanbenlebsir here's fine
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 14:02
ok so i have an arduino uno a rfid reader and an esp8266 so the problem i think is if i want to use only the esp8266 is to order a SPI to connect the esp8266 to the pc
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:03
hmm
no wifi?
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 14:11
no i have a wifi
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:11
can't you connect it through wifi then? or do you mean you don't have a way to program it?
Me No Dev
@me-no-dev
Nov 30 2015 14:13
I have the feeling that @Hassanbenlebsir is using the ESP with the AT firmware and has no idea that the ESP can run almost all that the regular arduino does
@Hassanbenlebsir am I correct?
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 14:14
for now i get the id of the card by using arduino and rfid reader and i want to send that id number using esp8266 to an other pc that's what i am trying to do
Me No Dev
@me-no-dev
Nov 30 2015 14:14
you want help setting up the ide and trying the ESP? Most of the Arduino code runs without modifications
I personally can not help with the AT firmware
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 14:16
i want help sending data that i got from my arduino and the rfid reader using esp to an other server
if you guys think there is a easier way you can tell me
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:16
the easier way is to get rid of the arduino and run the arduino code on the esp
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 14:16
but this was teh first thing i had in mind
so now i have to connect the rfid reader to the esp
Me No Dev
@me-no-dev
Nov 30 2015 14:18
first you need to setup your Arduino IDE to support theESP
then you need to connect the ESP to your computer through a serial port
once you can upload to it, you can try to run the RFID code on it
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 14:20
ok i will try this
you guys are awesome
when you search the internet everyone is using the esp with the arduino
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:23
nah, there are plenty of people using it on its own
you don't need the arduino, the esp is ~10 times more powerful
Me No Dev
@me-no-dev
Nov 30 2015 14:23
except when it crashes on you :D
Chris Elsworth
@celsworth
Nov 30 2015 14:24
or when you need more ADCs (yes I realise you could hook up an IC via SPI, but you know.. they're all right there on an Uno)
just use the right tool for the job ime ;)
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:25
true... i don't like how large the uno is, but i ordered some micros as well (they haven't arrived, though)
@me-no-dev does it crash on you a lot?
Chris Elsworth
@celsworth
Nov 30 2015 14:25
I have very few crashes I can't explain from bad code
I wouldn't use the thing if I did :)
Me No Dev
@me-no-dev
Nov 30 2015 14:25
well It's not like i'm not pushing it :D
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:25
what do you do with it?
Me No Dev
@me-no-dev
Nov 30 2015 14:26
point is, it's easy to overlook something that might get you into exception
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:26
ah
Chris Elsworth
@celsworth
Nov 30 2015 14:26
copious yield() :)
Me No Dev
@me-no-dev
Nov 30 2015 14:26
yield is sometimes not enough :)
it was not for OTA for example ;)
Chris Elsworth
@celsworth
Nov 30 2015 14:27
my current project is an AC power monitor, so current transducers around live wires, and an AC voltage monitor, then I can work out power export.. the esp doesn't seem to be great for this sadly :(
(essentially an openenergymonitor, if you've heard of that)
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:27
@celsworth ah, ouch
@me-no-dev do you need to yield in the loop() as well? or just in interrupts?
Me No Dev
@me-no-dev
Nov 30 2015 14:28
what do you measure the power with?
Chris Elsworth
@celsworth
Nov 30 2015 14:28
a) not enough ADCs, b) the interrupts can get in the way of my crossing counting
I have some SCT-013-000 transducers from aliexpress, across a burden resistor
chuck that into an ADC and do some rms calculations
Me No Dev
@me-no-dev
Nov 30 2015 14:28
@skorokithakis yielding is required where you need toexecute something for more than 5-6 ms
executing such things in interrupts is big no
@celsworth crazy!
Chris Elsworth
@celsworth
Nov 30 2015 14:30
heh. well, it works, its jsut very time sensitive :)
if an interrupt takes away control from my crossing counting for more than 20ms I can miss an AC crossing and my results are wrong
Me No Dev
@me-no-dev
Nov 30 2015 14:31
I have a module here that goes in the main box and outputs both rs485 and pulses each 0.5Wh
Chris Elsworth
@celsworth
Nov 30 2015 14:32
my power meter is far too old for such gadgetry :(
ancient thing
Me No Dev
@me-no-dev
Nov 30 2015 14:33
this goes inline with whatever you consume
it can't handle more than 5KW anyway
Chris Elsworth
@celsworth
Nov 30 2015 14:34
oh thats quite low
Me No Dev
@me-no-dev
Nov 30 2015 14:34
and I love those meters
the way the y work and all
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:34
@me-no-dev but does that include the loop()? i'm not doing any processing in interrupts, but my loop() takes a while. Do i need to yield there as well?
Me No Dev
@me-no-dev
Nov 30 2015 14:34
@skorokithakis you have two options:
delay(0); as often as you think
Sven Eliasson
@comino
Nov 30 2015 14:35
oh cool - connecting to my power meter was one of my next projects :D
Me No Dev
@me-no-dev
Nov 30 2015 14:35
or optimistic_yield(10000); as often as you can
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:35
what's the difference?
Me No Dev
@me-no-dev
Nov 30 2015 14:35
this will yield only when necessary
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:35
ah, thanks
which one do you use?
Me No Dev
@me-no-dev
Nov 30 2015 14:36
first one in sketches and where network is really busy, second one i libraries
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:36
ah, thanks
Ivan Grokhotkov
@igrr
Nov 30 2015 14:44
yield() is a shorthand for delay(0)
Me No Dev
@me-no-dev
Nov 30 2015 14:44
isn't it the other way around?
and delay(0) also calls esp_schedule()
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:47
does that mean delay(0) is better?
Me No Dev
@me-no-dev
Nov 30 2015 14:48
my oppinion is yes but @igrr is the master of yielding :)
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:49
haha, i see
Ivan Grokhotkov
@igrr
Nov 30 2015 14:49
yield() also calls esp_schedule, how would it work otherwise?)
Me No Dev
@me-no-dev
Nov 30 2015 14:50
pshh nevermind.... reading esp_schedule and esp_yield
Stavros Korokithakis
@skorokithakis
Nov 30 2015 14:50
so can i just use yield :P
Ivan Grokhotkov
@igrr
Nov 30 2015 14:50
Me No Dev
@me-no-dev
Nov 30 2015 14:54
ok a question then
yield checks if the context can yield and delay does not
how does that affect the usage?
what will happen I guess if you delay(0) in an interrupt?
@igrr any clues?
Hassanbenlebsir
@Hassanbenlebsir
Nov 30 2015 14:59
hey guys are working on the same project or what?
Ivan Grokhotkov
@igrr
Nov 30 2015 15:00
@me-no-dev i think this is a bug, delay should have that check too.
Me No Dev
@me-no-dev
Nov 30 2015 15:01
should that check be on both esp_schedule and esp_yield or just the esp_yield?
i guess both
Ivan Grokhotkov
@igrr
Nov 30 2015 15:02
it's not a problem to call esp_schedule from an interrupt
in fact, this is what happens when delay ends
timer interrupt calls esp_schedule
but calling esp_yield from an interrupt is not okay
Me No Dev
@me-no-dev
Nov 30 2015 15:03
ok, what will happen if you currently call delay() in an interrupt?
may this be the reason why people have been having issues with delays in interrupts (not that any delay should be there)
Ivan Grokhotkov
@igrr
Nov 30 2015 15:03
zero delay
or a crash
the problem is that cont_can_yield (source) isn't very reliable
IIRC it didn't return false for all the cases where it should
i have a task written down to investigate that...
Me No Dev
@me-no-dev
Nov 30 2015 15:06
ok will leave it as is then :) and pray for no crashes
Steve Nelson
@zenmanenergy
Nov 30 2015 16:46
in the 2.0 docs it says this….
"If you have a loop somewhere in your sketch that takes a lot of time (>50ms) without calling delay, you might consider adding a call to delay function to keep the WiFi stack running smoothly."
does that mean you’re suggesting adding a delay(1); inside the long running loop?
like...
while(){
//long running loop
delay(1);
}
Me No Dev
@me-no-dev
Nov 30 2015 16:47
yes
Steve Nelson
@zenmanenergy
Nov 30 2015 16:47
got it. thanks.
these new docs are wonderful!
Stavros Korokithakis
@skorokithakis
Nov 30 2015 16:50
which docs?
Stavros Korokithakis
@skorokithakis
Nov 30 2015 16:50
ooh
sexy
this isn't stable yet, right?
Ivan Grokhotkov
@igrr
Nov 30 2015 16:51
stable as in stable/staging?
Stavros Korokithakis
@skorokithakis
Nov 30 2015 16:51
yes
Ivan Grokhotkov
@igrr
Nov 30 2015 16:51
stable is 2.0.0 (as of today)
staging is 2.0.0-rc2
so yes, this is stable now
Stavros Korokithakis
@skorokithakis
Nov 30 2015 16:52
ooh, stable has FOTA? that's great
Chris Elsworth
@celsworth
Nov 30 2015 16:56
nice, congratulations on 2.0 release
now I look forward to sdk 1.5 :D
how likely is it to work if I just drop it in, I might try it ;)
Me No Dev
@me-no-dev
Nov 30 2015 16:57
DONT :D
Chris Elsworth
@celsworth
Nov 30 2015 16:57
hehe, doesn't it work? ;)
Me No Dev
@me-no-dev
Nov 30 2015 16:58
no :) there are some changes to the SDK headers to make them work in Arduino
there are lots of changes to the linkers
Chris Elsworth
@celsworth
Nov 30 2015 16:58
ok, I'll summon some patience ;)
in the meantime I opened a platformio ticket to ask them to update to 2.0.0 of this repo :)
since I use it and I know at least one other here does, the real Arduino IDE is just a bit too limiting and clunky.. much prefer commandline compiling and uploading, and being able to use vim :D
I need to work out why platformio doesn't use your ldscripts though, so I don't think they're benefitting from all the irom0 changes, sometimes I need to tweak to get things to fit
Me No Dev
@me-no-dev
Nov 30 2015 17:02
have not looked at it really :) not a big fan of "universal" stuff
Chris Elsworth
@celsworth
Nov 30 2015 17:03
short of writing my own Makefiles it's the only option if I want ot build stuff outside of the official IDE, and I just don't get on with that
does it even support using more than one sourcefile, or does it all have ot be in one big .ino? As I like splitting things up into logical units
Me No Dev
@me-no-dev
Nov 30 2015 17:03
you cannow use the ide from the command line to build the project
Chris Elsworth
@celsworth
Nov 30 2015 17:04
oh nice, I missed that
Me No Dev
@me-no-dev
Nov 30 2015 17:04
no need to open it and use it's UI
as a matter of fact, in the latest IDE that is how it builds it all
Chris Elsworth
@celsworth
Nov 30 2015 17:06
1.6.6? I don't have that installed as I heard it doesn't work with this repo yet, so on the rare occasion I do open it and use it, I want it to work.. so kept 1.6.5 :)
does 2.0.0 fix that btw?
Me No Dev
@me-no-dev
Nov 30 2015 17:07
it does work just fine, I use the OTA PR build from Arduino and that even says 1.6.7 if i'm not mistaken :)
yup 1.6.7
Chris Elsworth
@celsworth
Nov 30 2015 17:08
I saw some tickets about arduino-builder incompatibilities, but that may be old information now
#1066 perhaps
Me No Dev
@me-no-dev
Nov 30 2015 17:10
I never actualy noticed it because I tructure my code corectly to begin with (that missplaced madness works in the IDE only)
Mario Mikočević
@mozgy
Nov 30 2015 17:12
oooh, 2.0 stable, (beer)
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:18
wait, sorry, when was 2.0 released to stable?
Chris Elsworth
@celsworth
Nov 30 2015 17:19
today
Mario Mikočević
@mozgy
Nov 30 2015 17:20
igrr said here at 17:51 :)
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:22
oh
then i need to update :P
oh, no, that's the sdk
hm
Mario Mikočević
@mozgy
Nov 30 2015 17:23
thats the old stable
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:23
right
i use platformio, so i need to update manually
Chris Elsworth
@celsworth
Nov 30 2015 17:24
@skorokithakis platformio/platformio#345
already in hand :)
depends how impatient you are :)
they said they'll do it tomorrow
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:24
yep, i just commented there, i guess i can wait until then!
i'm a bit confused as to why platformio need to make a 2.4.0 release just to update the esp8266 platform
i'd have thought platforms are independent from the core platformio
Chris Elsworth
@celsworth
Nov 30 2015 17:30
yeah they are, maybe they just have other changes too
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:30
probably... they said they'll use the arduino linkers, so here's hoping that things will be super stable with 2.0.0
Mario Mikočević
@mozgy
Nov 30 2015 17:42
hmmm ->
Board generic (platform esp8266, package esp8266) is unknown
Error compiling.
Chris Elsworth
@celsworth
Nov 30 2015 17:44
is dtostrf() the best thing to use if I want to convert a double into something I can throw into a string (to be put into some JSON) if I want anything other than 2dp?
no %f in printf makes me sad :(
Steve Nelson
@zenmanenergy
Nov 30 2015 17:47
Did https make it into v 2.0.0?
Mario Mikočević
@mozgy
Nov 30 2015 17:52
ok, 1.6.5 works but PR-build won't
prolly forgot to unpack something somewhere ..
Me No Dev
@me-no-dev
Nov 30 2015 17:53
prolly missing the esp hardware folder :)
Mario Mikočević
@mozgy
Nov 30 2015 17:54
right :clap:
question is now - do I want to go 1.6.7 route atm
I presume only OTA is interesting difference ?
Me No Dev
@me-no-dev
Nov 30 2015 17:57
why not go? it's the newest IDE and we gat thumbs up tonight that the PR will be merged
it's not like it's not working :)
plus I got so used to OTAing everything...
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:57
it's worth it for OTA alone, for me
Mario Mikočević
@mozgy
Nov 30 2015 17:58
hehe
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:58
i've never done it before, is it working well?
Mario Mikočević
@mozgy
Nov 30 2015 17:58
it's mishmush with dir locations here atm
Me No Dev
@me-no-dev
Nov 30 2015 17:58
I have not had a fail
Mario Mikočević
@mozgy
Nov 30 2015 17:58
@skorokithakis OTA is fantastic
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:58
it sounds fantastic :(
Me No Dev
@me-no-dev
Nov 30 2015 17:58
but the IDE has a bug that loses the boards after some time
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:58
it's ok, i'll use otatool
or espota or whatever it's called
Me No Dev
@me-no-dev
Nov 30 2015 17:58
so you will need to restart it every once in a while
Chris Elsworth
@celsworth
Nov 30 2015 17:58
espota.py, yeah
Stavros Korokithakis
@skorokithakis
Nov 30 2015 17:59
thanks
Mario Mikočević
@mozgy
Nov 30 2015 17:59
IDE has a bug that sometimes produces multicast storm here
Me No Dev
@me-no-dev
Nov 30 2015 17:59
I will look into it :) plus more things I have planned
only to get this PR merged first
I think I know what it is :)
Markus
@Links2004
Nov 30 2015 18:10
wow many done today, good jop.
Mario Mikočević
@mozgy
Nov 30 2015 18:11
ok, sorted 2.0 with 1.6.7PR
Me No Dev
@me-no-dev
Nov 30 2015 18:15
now try that Upload button with BasicOTA (no need to select OTA as upload method, just the device in the ports)
Mario Mikočević
@mozgy
Nov 30 2015 18:18
will do a bit later .. family time ..
d-anders
@d-anders
Nov 30 2015 21:58
nice docs
Scott Shawcroft
@tannewt
Nov 30 2015 22:20
Hi all, I'm stuck deciding how to handle sending data back from 2+ esp8266s to 2+ phones connected to one of the esp8266s in AP mode.
ideally each phone can do a udp multicast to the esp8266s and then they can tcp back to the phone. However, I've for the multicast only reaches the AP esp8266...
Markus
@Links2004
Nov 30 2015 22:27
the esp has no routing feature for network data.
you need to handle it yourself.
you can setup two multicast address one for sending to the AP
and one where the AP sends back all data it gets to all devices.
Scott Shawcroft
@tannewt
Nov 30 2015 22:27
ok, thats what I suspected
Dmitry Kireev
@kireevco
Nov 30 2015 22:27
@Juppit are you around?
Scott Shawcroft
@tannewt
Nov 30 2015 22:28
@Links2004 I believe the arduino wificlient write also blocks on receiving an ack. How would you suggest I avoid that blocking?
Dmitry Kireev
@kireevco
Nov 30 2015 22:29
I need some testing for building https://github.com/kireevco/esp-alt-sdk
I was able to build it on windows & mac
& linux
Markus
@Links2004
Nov 30 2015 22:32
@tannewt at low level it is received, it only get problematical if the buffer gets full. then you will see LmacRxBlk for example.
as long you not disable the irq the low level will running.
Scott Shawcroft
@tannewt
Nov 30 2015 22:33
any idea how big the buffer is? my packets are 9 bytes currently but I want to batch them to minimize tcp overhead
Markus
@Links2004
Nov 30 2015 22:35
by 9 byte to 40 byte TCP + IP header ;) on tcp packet can have a size of 1460 Byte.
Scott Shawcroft
@tannewt
Nov 30 2015 22:35
kk, thanks!
Stavros Korokithakis
@skorokithakis
Nov 30 2015 23:32
does anyone know if i can flash the arduino firmware to a wide-version nodemcu?
the one that doesn't leave room on the breadboard
Chris Elsworth
@celsworth
Nov 30 2015 23:32
yeah, I have two of them and its fine
Stavros Korokithakis
@skorokithakis
Nov 30 2015 23:33
i just do it the normal way?
Chris Elsworth
@celsworth
Nov 30 2015 23:33
yep :)
Stavros Korokithakis
@skorokithakis
Nov 30 2015 23:34
great, thanks
have you tried programming it through an FTDI programmer?
Chris Elsworth
@celsworth
Nov 30 2015 23:34
no, just the onboard usb
Stavros Korokithakis
@skorokithakis
Nov 30 2015 23:35
ah, thanks
i just got an ftdi cable and am itching to try it out
@celsworth which version is the wide nodemcu?
Stavros Korokithakis
@skorokithakis
Nov 30 2015 23:46
ah, 0.9
Stavros Korokithakis
@skorokithakis
Nov 30 2015 23:51
looks like three resistors?
Martin Ayotte
@martinayotte
Nov 30 2015 23:58
Yes, left resistor is the pullup on CH_PD, he right one is pulldown on GPIO15, and the center one is a zero ohm for onboard AMS1117 regulator. Unfortunately, there is no pullup on GPIO2/GPIO0, they should have added those for 2 more cents.